aboutsummaryrefslogblamecommitdiffstats
path: root/roles/jenkins/tasks/main.yml
blob: 530889dd6186d0377fa1d12d788f45155de2d69e (plain) (tree)
1
2
3
4
5
6





                                         






                                                             
















                                        

# jenkins ~~ roles/jenkins/tasks/main.yml
# jenkins setup

---

- name: install jenkins for OpenBSD
  package: name="jenkins-{{ jenkins_version }}" state=present
  when: ansible_distribution == "OpenBSD"

- name: install generic jenkins package
  package: name="jenkins" state=present
  when: ansible_distribution != "OpenBSD"

- 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
remember that computers suck.