--- - name: Addding Jenkins apt repository key apt_key: url='https://pkg.jenkins.io/debian/jenkins.io.key' state=present - name: Adding Jenkins apt repository sources apt_repository: repo='deb http://pkg.jenkins.io/debian-stable binary/' state=present - name: Installing Jenkins apt: update_cache: yes state: present name: jenkins