diff --git a/tests/test_ntp.py b/tests/test_ntp.py index 41a8af87c4b1cce23c43fb303beb58b8395bd72f..9156d53083cde56359ccc45e5cd4d3302fb51e2c 100644 --- a/tests/test_ntp.py +++ b/tests/test_ntp.py @@ -5,8 +5,9 @@ testinfra_hosts = AnsibleRunner('.molecule/ansible_inventory').get_hosts('all') def test_ntp(Service): assert Service('systemd-timesyncd').is_running or Service( - 'ntpd').is_running + 'ntpd').is_running or Service('openntpd').is_running try: - Service('systemd-timesyncd').is_enabled or Service('ntpd').is_enabled + Service('systemd-timesyncd').is_enabled or Service( + 'ntpd').is_enabled or Service('openntpd').is_enabled except NotImplementedError: pass