ensure directory exists

This commit is contained in:
Torma Kristóf 2022-04-16 21:20:11 +02:00
parent cfd20456ac
commit 5d2d1be654
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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