summaryrefslogtreecommitdiffstats
path: root/tasks/main.yml
diff options
context:
space:
mode:
authorJeff Geerling <geerlingguy@mac.com>2014-05-09 09:37:55 -0500
committerJeff Geerling <geerlingguy@mac.com>2014-05-09 09:37:55 -0500
commitfd9f99697d3f06f636d13a34206202eb26c5ca17 (patch)
treebf698dddc4436ad54843a5b3577734be8647dd6b /tasks/main.yml
parent884da1935c36ab66fabd08c3e0d7d0ce04c522ac (diff)
downloadntp-fd9f99697d3f06f636d13a34206202eb26c5ca17.tar.gz
ntp-fd9f99697d3f06f636d13a34206202eb26c5ca17.tar.bz2
ntp-fd9f99697d3f06f636d13a34206202eb26c5ca17.tar.xz
ntp-fd9f99697d3f06f636d13a34206202eb26c5ca17.zip
Add ntp_enabled variable and Travis CI test integration.
Diffstat (limited to 'tasks/main.yml')
-rw-r--r--tasks/main.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/tasks/main.yml b/tasks/main.yml
index 19343f2..144c455 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -14,4 +14,8 @@
when: ansible_os_family == 'Debian'
- name: Ensure NTP is running.
- service: name={{ ntp_daemon }} state=started enabled=yes
+ service: >
+ name={{ ntp_daemon }}
+ state=started
+ enabled=yes
+ when: ntp_enabled