Переглянути джерело

create ssh directory

master
Markus Katharina Brechtel 6 роки тому
джерело
коміт
fbdb451972
1 змінених файлів з 6 додано та 0 видалено
  1. +6
    -0
      tasks/ssh.yml

+ 6
- 0
tasks/ssh.yml Переглянути файл

@@ -9,6 +9,12 @@
- root_ssh_key
- not root_target_directory is defined

- name: ssh directory
file:
path: "{{ root_target_directory | default('') }}/root/.ssh"
state: directory
when: root_ssh_authorized_keys is defined

- name: ssh authorized keys
template:
src: ssh_authorized_keys.j2