Andy Bavier | 4ae79c9 | 2017-07-27 13:02:11 -0700 | [diff] [blame^] | 1 | --- |
2 | # roles/maas-user-privkey/tasks/main.yml | ||||
3 | |||||
4 | - name: Create maas .ssh dir | ||||
5 | become: yes | ||||
6 | file: | ||||
7 | path: "{{ maas_homedir }}/.ssh" | ||||
8 | state: directory | ||||
9 | owner: maas | ||||
10 | group: maas | ||||
11 | mode: 0700 | ||||
12 | |||||
13 | - name: Copy generated private key to maas user | ||||
14 | become: yes | ||||
15 | copy: | ||||
16 | src: "{{ pub_ssh_key_file_location }}/cord_rsa" | ||||
17 | dest: "{{ maas_homedir }}/.ssh/id_rsa" | ||||
18 | owner: maas | ||||
19 | group: maas | ||||
20 | mode: 0600 |