mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-08 12:53:29 +01:00
tests: Skip the negative test in RHEL6
The ansible_failed_result is not available in old Ansible on RHEL6
This commit is contained in:
parent
9326a46dd8
commit
2e3b3c0581
1 changed files with 4 additions and 0 deletions
|
@ -48,6 +48,8 @@
|
|||
- ansible_failed_result.msg != 'UNREACH'
|
||||
- not role_result.changed
|
||||
msg: "Role has not failed when it should have"
|
||||
when:
|
||||
- not (ansible_facts['os_family'] == 'RedHat' and ansible_facts['distribution_major_version'] == '6')
|
||||
|
||||
- name: Make sure service is still running
|
||||
service:
|
||||
|
@ -56,6 +58,8 @@
|
|||
register: result
|
||||
failed_when: result.changed
|
||||
tags: tests::verify
|
||||
when:
|
||||
- not (ansible_facts['os_family'] == 'RedHat' and ansible_facts['distribution_major_version'] == '6')
|
||||
|
||||
- name: "Restore configuration files"
|
||||
include_tasks: tasks/restore.yml
|
||||
|
|
Loading…
Reference in a new issue