瀏覽代碼

create ssh directory

master
父節點
當前提交
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