diff --git a/tests/tests_os_defaults.yml b/tests/tests_os_defaults.yml index 6409a5f..b1e93e5 100644 --- a/tests/tests_os_defaults.yml +++ b/tests/tests_os_defaults.yml @@ -34,7 +34,8 @@ that: - runtime_before.stdout == runtime_after.stdout when: - - not (ansible_facts['distribution'] == 'RedHat' and ansible_facts['distribution_major_version'] == '6') + # RHEL6/CentOS6 images have modified sshd_config, different from what is in rpm package + - not (ansible_facts['os_family'] == 'RedHat' and ansible_facts['distribution_major_version'] == '6') - name: Restore configuration files include_tasks: tasks/restore.yml