summaryrefslogtreecommitdiff
path: root/salt/openbook/ansible/files/jenkins_user.yaml
diff options
context:
space:
mode:
authorCarlos Konstanski <ckonstanski@pippiandcarlos.com>2017-08-30 13:09:56 -0600
committerCarlos Konstanski <ckonstanski@pippiandcarlos.com>2017-08-30 13:09:56 -0600
commit649f0dd9c5ca586d8b637400dd19c0c4059447d6 (patch)
tree5ccc992a3aa5de1bcb510911dfdb21e6a54bd197 /salt/openbook/ansible/files/jenkins_user.yaml
initial commit
Diffstat (limited to 'salt/openbook/ansible/files/jenkins_user.yaml')
-rw-r--r--salt/openbook/ansible/files/jenkins_user.yaml15
1 files changed, 15 insertions, 0 deletions
diff --git a/salt/openbook/ansible/files/jenkins_user.yaml b/salt/openbook/ansible/files/jenkins_user.yaml
new file mode 100644
index 0000000..14085da
--- /dev/null
+++ b/salt/openbook/ansible/files/jenkins_user.yaml
@@ -0,0 +1,15 @@
+- name: "Create jenkins user"
+ hosts: all
+ tasks:
+ - name: "Create jenkins group"
+ group:
+ name: jenkins
+ state: present
+
+ - name: "Create jenkins user"
+ user:
+ name: jenkins
+ shell: /bin/bash
+ comment: "jenkins user"
+ home: /var/lib/jenkins
+ group: jenkins