From: Michael Jeanson Date: Mon, 7 Dec 2015 15:59:30 +0000 (-0500) Subject: Create jenkins user X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=33436c917ddc5dc331f96a237fa81d70da92198c;p=lttng-ci.git Create jenkins user --- diff --git a/automation/ansible/roles/common/tasks/main.yml b/automation/ansible/roles/common/tasks/main.yml index d8c5382..82a7849 100644 --- a/automation/ansible/roles/common/tasks/main.yml +++ b/automation/ansible/roles/common/tasks/main.yml @@ -15,6 +15,15 @@ - 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