mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-12-25 18:10:18 +01:00
commit
a6652594ba
2 changed files with 4 additions and 4 deletions
|
@ -25,11 +25,11 @@ script:
|
|||
- "ANSIBLE_FORCE_COLOR=1 ansible-playbook -i tests/inventory tests/test.yml --syntax-check"
|
||||
|
||||
# Run the role
|
||||
- "ANSIBLE_FORCE_COLOR=1 ansible-playbook -i tests/inventory tests/test.yml --connection=local --sudo -v"
|
||||
- "ANSIBLE_FORCE_COLOR=1 ansible-playbook -i tests/inventory tests/test.yml --connection=local --become -v"
|
||||
|
||||
# Run the role/playbook again, checking to make sure it's idempotent.
|
||||
- >
|
||||
ansible-playbook -i tests/inventory tests/test.yml --connection=local --sudo
|
||||
| grep -q 'changed=0.*failed=0'
|
||||
ansible-playbook -i tests/inventory tests/test.yml --connection=local --become | grep -q 'changed=0.*failed=0'
|
||||
&& (echo 'Idempotence test: pass' && exit 0)
|
||||
|| (echo 'Idempotence test: fail' && exit 1)
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
name: "{{ sshd_service }}"
|
||||
state: reloaded
|
||||
when:
|
||||
- sshd_allow_reload
|
||||
- sshd_allow_reload|bool
|
||||
- ansible_virtualization_type|default(None) != 'docker'
|
||||
- ansible_connection != 'chroot'
|
||||
listen: reload_sshd
|
||||
|
|
Loading…
Reference in a new issue