Added backup for configuration files

This commit is contained in:
Kevin Veen-Birkenbach 2021-01-01 16:11:12 +01:00
parent 543c640754
commit 38616ff702
3 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,6 @@
- name: configuring ssh
template: src=sshd_config dest=/etc/ssh/
- name: create sshd_config
copy:
src: sshd_config
dest: /etc/ssh/sshd_config
backup: yes
notify: sshd restart

View File

@ -8,3 +8,4 @@
mode: "0440"
owner: root
group: root
backup: yes