2015-01-12 22:01:08 +01:00
|
|
|
---
|
2020-11-20 23:12:04 +01:00
|
|
|
- hosts: all
|
|
|
|
vars:
|
|
|
|
__sshd_test_backup_files:
|
|
|
|
- /etc/ssh/sshd_config
|
|
|
|
- /etc/ssh/sshd_config.d/00-ansible_system_role.conf
|
|
|
|
tasks:
|
|
|
|
- name: "Backup configuration files"
|
|
|
|
include_tasks: tasks/backup.yml
|
|
|
|
|
2017-05-04 14:58:46 +02:00
|
|
|
- hosts: all
|
2015-01-12 22:15:25 +01:00
|
|
|
roles:
|
2015-01-12 22:01:08 +01:00
|
|
|
- ansible-sshd
|
2020-11-20 23:12:04 +01:00
|
|
|
|
|
|
|
- hosts: all
|
|
|
|
vars:
|
|
|
|
__sshd_test_backup_files:
|
|
|
|
- /etc/ssh/sshd_config
|
|
|
|
- /etc/ssh/sshd_config.d/00-ansible_system_role.conf
|
|
|
|
tasks:
|
|
|
|
- name: "Restore configuration files"
|
|
|
|
include_tasks: tasks/restore.yml
|