aboutsummaryrefslogtreecommitdiffstats
path: root/roles/jenkins/tasks/main.yml
blob: cac34e6e1a60fed452fbe65d3f50b38923d33716 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

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