ansible-sshd/tests/tests_default_include.yml

18 lines
478 B
YAML
Raw Normal View History

---
- name: Test default with include tasks
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: "Configure sshd"
2022-06-03 12:22:17 +02:00
ansible.builtin.include_role:
name: ansible-sshd
- name: "Restore configuration files"
2022-06-03 12:22:17 +02:00
ansible.builtin.include_tasks: tasks/restore.yml