aboutsummaryrefslogtreecommitdiffstats
path: root/roles/jenkins/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/jenkins/tasks/main.yml')
-rw-r--r--roles/jenkins/tasks/main.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/roles/jenkins/tasks/main.yml b/roles/jenkins/tasks/main.yml
new file mode 100644
index 0000000..cac34e6
--- /dev/null
+++ b/roles/jenkins/tasks/main.yml
@@ -0,0 +1,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.