ansible-sshd/tests/tests_default.yml

26 lines
617 B
YAML
Raw Permalink Normal View History

2015-01-12 22:01:08 +01:00
---
- name: Test default - setup
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"
2022-06-03 12:22:17 +02:00
ansible.builtin.include_tasks: tasks/backup.yml
- name: Test defaults
hosts: all
2015-01-12 22:15:25 +01:00
roles:
- ansible-sshd
- name: Test default - restore
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"
2022-06-03 12:22:17 +02:00
ansible.builtin.include_tasks: tasks/restore.yml