blob: 775c820cac25539f325c7ca3697b4de2a23f387c [file] [log] [blame]
Andy Bavier4ae79c92017-07-27 13:02:11 -07001---
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