Loading tests/test_ntp.py +3 −2 Original line number Diff line number Diff line Loading @@ -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 Loading
tests/test_ntp.py +3 −2 Original line number Diff line number Diff line Loading @@ -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