blob: f47ce35543fa0c5d989af870cb8d0b687d13d961 [file] [log] [blame]
Zack Williamsc989f262017-05-11 13:02:59 -07001---
2# ssh-install-maas/tasks/main.yml
3
4# the following replicates the functionality of the maas repo `prep` role
5# users/perms may seem off, but is identical to that role
6
7- name: Create ssh key directory for MaaS
Zack Williamsfe284a12017-07-01 11:00:04 -07008 when: use_maas
Zack Williamsc989f262017-05-11 13:02:59 -07009 file:
10 dest: "/etc/maas/.ssh/"
11 mode: 0755
12 owner: "root"
13 group: "root"
14 state: directory
15
16- name: Copy ssh private key for MaaS
Zack Williamsfe284a12017-07-01 11:00:04 -070017 when: use_maas
Zack Williamsc989f262017-05-11 13:02:59 -070018 copy:
19 src: "{{ ssh_pki_dir }}/client_certs/{{ pod_sshkey_name }}_sshkey"
20 dest: "/etc/maas/.ssh/cord_rsa"
21 mode: 0644
22 owner: "root"
23 group: "root"
24 backup: true
25
26- name: Copy ssh public key for MaaS
Zack Williamsfe284a12017-07-01 11:00:04 -070027 when: use_maas
Zack Williamsc989f262017-05-11 13:02:59 -070028 copy:
29 src: "{{ ssh_pki_dir }}/client_certs/{{ pod_sshkey_name }}_sshkey.pub"
30 dest: "/etc/maas/.ssh/cord_rsa.pub"
31 mode: 0644
32 owner: "root"
33 group: "root"
34 backup: true
35