mirror of
https://github.com/willshersystems/ansible-sshd
synced 2025-01-11 09:40:18 +01:00
tests: Add whitespace
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
parent
ff56d75a6e
commit
7e311e19a9
1 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
- /etc/ssh/sshd_config.d/00-ansible_system_role.conf
|
- /etc/ssh/sshd_config.d/00-ansible_system_role.conf
|
||||||
- /etc/ssh/ssh_host_rsa_key
|
- /etc/ssh/ssh_host_rsa_key
|
||||||
- /etc/ssh/ssh_host_rsa_key.pub
|
- /etc/ssh/ssh_host_rsa_key.pub
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Backup configuration files
|
- name: Backup configuration files
|
||||||
include_tasks: tasks/backup.yml
|
include_tasks: tasks/backup.yml
|
||||||
|
@ -22,13 +23,16 @@
|
||||||
sshd -T
|
sshd -T
|
||||||
register: runtime_before
|
register: runtime_before
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
- name: Configure sshd
|
- name: Configure sshd
|
||||||
include_role:
|
include_role:
|
||||||
name: ansible-sshd
|
name: ansible-sshd
|
||||||
|
|
||||||
- name: Show effective configuration after running role (role defaults)
|
- name: Show effective configuration after running role (role defaults)
|
||||||
command: sshd -T
|
command: sshd -T
|
||||||
register: runtime_after
|
register: runtime_after
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
- name: Check that the effective configuration did not change from OS defaults
|
- name: Check that the effective configuration did not change from OS defaults
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
|
|
Loading…
Reference in a new issue