# jenkins ~~ roles/jenkins/tasks/main.yml # jenkins setup --- - name: install jenkins package: name: jenkins state: present - name: ensure jenkins group exists group: name: "{{ jenkins_group }}" state: present - name: ensure jenkins user exists user: name: "{{ jenkins_user }}" group: "{{ jenkins_group }}" state: present - name: start and enable jenkins service service: name: jenkins state: restarted enabled: true