diff options
author | Jeff Geerling <geerlingguy@mac.com> | 2015-07-17 21:20:31 -0500 |
---|---|---|
committer | Jeff Geerling <geerlingguy@mac.com> | 2015-07-17 21:20:31 -0500 |
commit | 8d2c69407658f55788e522c6293a9c4c6c7c7344 (patch) | |
tree | f2d0f60cb3dd682c3333f8b835d21f65b996ec90 /tasks | |
parent | 1fe4d7823916e3f00198b8326caed76f60a3aa1b (diff) | |
download | ntp-8d2c69407658f55788e522c6293a9c4c6c7c7344.tar.gz ntp-8d2c69407658f55788e522c6293a9c4c6c7c7344.tar.bz2 ntp-8d2c69407658f55788e522c6293a9c4c6c7c7344.tar.xz ntp-8d2c69407658f55788e522c6293a9c4c6c7c7344.zip |
Fixed documentation and linux distro information.
Diffstat (limited to 'tasks')
-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 |