ensure directory exists
This commit is contained in:
parent
cfd20456ac
commit
5d2d1be654
@ -39,6 +39,11 @@
|
|||||||
name: sshd
|
name: sshd
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
|
- name: Create .ssh directory of backup user
|
||||||
|
file:
|
||||||
|
path: /home/backup/.ssh
|
||||||
|
state: directory
|
||||||
|
|
||||||
- name: Copy authorized_keys
|
- name: Copy authorized_keys
|
||||||
copy:
|
copy:
|
||||||
src: authorized_keys
|
src: authorized_keys
|
||||||
|
@ -50,6 +50,11 @@
|
|||||||
enabled: yes
|
enabled: yes
|
||||||
name: backup.timer
|
name: backup.timer
|
||||||
|
|
||||||
|
- name: Create .ssh directory of root user
|
||||||
|
file:
|
||||||
|
path: /root/.ssh
|
||||||
|
state: directory
|
||||||
|
|
||||||
- name: Copy ssh config
|
- name: Copy ssh config
|
||||||
copy:
|
copy:
|
||||||
src: ssh_config
|
src: ssh_config
|
||||||
|
Loading…
Reference in New Issue
Block a user