tests: Skip the negative test in RHEL6

The ansible_failed_result is not available in old Ansible on RHEL6
This commit is contained in:
Jakub Jelen 2021-08-09 09:49:13 +02:00
parent 9326a46dd8
commit 2e3b3c0581

View file

@ -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