Skip to content
Snippets Groups Projects
Commit 00ffcb0d authored by nimrod's avatar nimrod
Browse files

- Corrected test.

parent 75795c53
No related branches found
No related tags found
No related merge requests found
...@@ -5,8 +5,9 @@ testinfra_hosts = AnsibleRunner('.molecule/ansible_inventory').get_hosts('all') ...@@ -5,8 +5,9 @@ testinfra_hosts = AnsibleRunner('.molecule/ansible_inventory').get_hosts('all')
def test_ntp(Service): def test_ntp(Service):
assert Service('systemd-timesyncd').is_running or Service( assert Service('systemd-timesyncd').is_running or Service(
'ntpd').is_running 'ntpd').is_running or Service('openntpd').is_running
try: 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: except NotImplementedError:
pass pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment