Commit | Line | Data |
---|---|---|
d82e5cee KS |
1 | --- |
2 | - name: Create jenkins user | |
3 | ansible.windows.win_user: | |
4 | name: jenkins | |
5 | state: "{{ (jenkins_user|bool) | ternary('present', 'absent') }}" | |
6 | ||
7 | - name: Create jenkins user dotssh folder | |
8 | when: jenkins_user|bool | |
9 | ansible.windows.win_file: | |
10 | state: directory | |
11 | path: "c:/users/jenkins/.ssh" | |
12 | ||
13 | - name: Deploy jenkins authorized_keys | |
14 | when: jenkins_user|bool | |
15 | ansible.windows.win_copy: | |
16 | # yamllint disable-line rule:line-length | |
17 | content: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDA3fwpioVLDoCQsQkYK5bOwPb8N0EXeYm2MleBQTfqxtKaqWWbmUtFXAiyclKHRspjcAiIKwwqLyhPopHBqJzmXnB0GsfGmxXJ6wSBgKJ4kdBVRM+nKlK0wCl1oQkFeV/Xl3jzt1Ey96XiNWlesfkvgcMCpsJzQ7/xRb9IcghskzlQbLOwDNir/156JgAYUYvOLqNCcE+xcgPxJGanfZDXTLkfBYxaeaB8isBPeEU6fhPvu/W055M1uB7E0qhcbFtuKCBu1Fg4jzsW4yDU8+ZB1b5mAXwEAuMbVGMrOf4rjtTpGpQd6XFsXpFT28NU1u5j2cUbtANJalkNDX/UY6XJ jenkins@ci-master-02' | |
18 | dest: 'c:/users/jenkins/.ssh/authorized_keys' |