diff options
author | Jeff Geerling <geerlingguy@mac.com> | 2015-07-17 21:20:31 -0500 |
---|---|---|
committer | Jeff Geerling <geerlingguy@mac.com> | 2016-03-03 22:32:08 -0600 |
commit | df7f9eb615cf94cb6ba0163c361fc4bdb7956f72 (patch) | |
tree | f2d0f60cb3dd682c3333f8b835d21f65b996ec90 /tasks/main.yml | |
parent | a62270617e954dd017b5389de32ffeb8103c0f09 (diff) | |
download | ntp-df7f9eb615cf94cb6ba0163c361fc4bdb7956f72.tar.gz ntp-df7f9eb615cf94cb6ba0163c361fc4bdb7956f72.tar.bz2 ntp-df7f9eb615cf94cb6ba0163c361fc4bdb7956f72.tar.xz ntp-df7f9eb615cf94cb6ba0163c361fc4bdb7956f72.zip |
Fixed documentation and linux distro information.
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 |