diff options
-rw-r--r-- | handlers/main.yml | 4 | ||||
-rw-r--r-- | tests/test.yml | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/handlers/main.yml b/handlers/main.yml index 37d0e52..ecf7353 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,4 +1,6 @@ --- - name: restart ntp - service: "name={{ ntp_daemon }} state=restarted" + service: + name: "{{ ntp_daemon }}" + state: restarted when: ntp_enabled diff --git a/tests/test.yml b/tests/test.yml index cd5a418..a51eedd 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -6,7 +6,9 @@ pre_tasks: - name: Update apt cache. - apt: update_cache=yes cache_valid_time=600 + apt: + update_cache: yes + cache_valid_time: 600 when: ansible_os_family == 'Debian' roles: |