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 - name: create sshd_config
template: src=sshd_config dest=/etc/ssh/ copy:
src: sshd_config
dest: /etc/ssh/sshd_config
backup: yes
notify: sshd restart notify: sshd restart

View File

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