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