Create jenkins user
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 7 Dec 2015 15:59:30 +0000 (10:59 -0500)
committerMichael Jeanson <mjeanson@efficios.com>
Mon, 7 Dec 2015 15:59:30 +0000 (10:59 -0500)
automation/ansible/roles/common/tasks/main.yml

index d8c53828cc9c125a4f2598818ac613cd4873bbf5..82a7849b676c191cfed2dc5475f3c68634ea1e98 100644 (file)
 - include: setup-Debian.yml
   when: ansible_os_family == 'Debian'
 
+- name: Create jenkins user
+  user:
+    name: 'jenkins'
+
+- name: Set up authorized_keys for the jenkins user
+  authorized_key:
+    user: 'jenkins'
+    key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDA3fwpioVLDoCQsQkYK5bOwPb8N0EXeYm2MleBQTfqxtKaqWWbmUtFXAiyclKHRspjcAiIKwwqLyhPopHBqJzmXnB0GsfGmxXJ6wSBgKJ4kdBVRM+nKlK0wCl1oQkFeV/Xl3jzt1Ey96XiNWlesfkvgcMCpsJzQ7/xRb9IcghskzlQbLOwDNir/156JgAYUYvOLqNCcE+xcgPxJGanfZDXTLkfBYxaeaB8isBPeEU6fhPvu/W055M1uB7E0qhcbFtuKCBu1Fg4jzsW4yDU8+ZB1b5mAXwEAuMbVGMrOf4rjtTpGpQd6XFsXpFT28NU1u5j2cUbtANJalkNDX/UY6XJ jenkins@ci-master-02'
+
 - name: Create sudoers.d directory.
   file:
     path: /etc/sudoers.d
This page took 0.022654 seconds and 4 git commands to generate.