ensure directory exists
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user