ansible: Add support for common configuration on Windows hosts
[lttng-ci.git] / automation / ansible / roles / common / tasks / users.yml
CommitLineData
d82e5cee
KS
1---
2- name: Remove ubuntu user
3 user:
4 name: ubuntu
5 state: absent
6 remove: yes
7
8- name: Remove debian user
9 user:
10 name: debian
11 state: absent
12 remove: yes
13
14- name: Create jenkins user
15 when: jenkins_user | bool
16 user:
17 name: 'jenkins'
18
19- name: Set up authorized_keys for the jenkins user
20 when: jenkins_user | bool
21 authorized_key:
22 user: 'jenkins'
23 # yamllint disable-line rule:line-length
24 key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDA3fwpioVLDoCQsQkYK5bOwPb8N0EXeYm2MleBQTfqxtKaqWWbmUtFXAiyclKHRspjcAiIKwwqLyhPopHBqJzmXnB0GsfGmxXJ6wSBgKJ4kdBVRM+nKlK0wCl1oQkFeV/Xl3jzt1Ey96XiNWlesfkvgcMCpsJzQ7/xRb9IcghskzlQbLOwDNir/156JgAYUYvOLqNCcE+xcgPxJGanfZDXTLkfBYxaeaB8isBPeEU6fhPvu/W055M1uB7E0qhcbFtuKCBu1Fg4jzsW4yDU8+ZB1b5mAXwEAuMbVGMrOf4rjtTpGpQd6XFsXpFT28NU1u5j2cUbtANJalkNDX/UY6XJ jenkins@ci-master-02'
25- name: Remove jenkins sudoers file
26 file:
27 path: "/etc/sudoers.d/jenkins"
28 state: absent
This page took 0.041056 seconds and 4 git commands to generate.