mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-23 03:20:19 +01:00
16 lines
376 B
YAML
16 lines
376 B
YAML
---
|
|
- 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
|
|
|
|
- name: "Configure sshd"
|
|
include_role:
|
|
name: ansible-sshd
|
|
|
|
- name: "Restore configuration files"
|
|
include_tasks: tasks/restore.yml
|