diff options
Diffstat (limited to 'tasks/main.yml')
-rw-r--r-- | tasks/main.yml | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/tasks/main.yml b/tasks/main.yml index b71ac16..2844315 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -3,7 +3,11 @@ include_vars: "{{ ansible_os_family }}.yml" - name: Set the correct timezone. - file: src=/usr/share/zoneinfo/{{ ntp_timezone }} dest=/etc/localtime state=link force=yes + file: + src: "/usr/share/zoneinfo/{{ ntp_timezone }}" + dest: /etc/localtime + state: link + force: yes - name: Install NTP (RedHat). yum: name=ntp state=installed @@ -18,15 +22,15 @@ when: ansible_os_family == 'FreeBSD' - name: Ensure NTP is running and enabled at system start. - service: > - name={{ ntp_daemon }} - state=started - enabled=yes + service: + name: "{{ ntp_daemon }}" + state: started + enabled: yes when: ntp_enabled - name: Ensure NTP is stopped and disabled at system start. - service: > - name={{ ntp_daemon }} - state=stopped - enabled=no + service: + name: "{{ ntp_daemon }}" + state: stopped + enabled: no when: not ntp_enabled |