diff options
author | Jeff Geerling <geerlingguy@mac.com> | 2014-05-09 09:44:06 -0500 |
---|---|---|
committer | Jeff Geerling <geerlingguy@mac.com> | 2014-05-09 09:44:06 -0500 |
commit | 19dfa1942bb7452c4006055b69b5f0ac031f0ae7 (patch) | |
tree | e46ead317838444b02a561b8245d7f3a375fb10b /tasks | |
parent | fd9f99697d3f06f636d13a34206202eb26c5ca17 (diff) | |
download | ntp-19dfa1942bb7452c4006055b69b5f0ac031f0ae7.tar.gz ntp-19dfa1942bb7452c4006055b69b5f0ac031f0ae7.tar.bz2 ntp-19dfa1942bb7452c4006055b69b5f0ac031f0ae7.tar.xz ntp-19dfa1942bb7452c4006055b69b5f0ac031f0ae7.zip |
Add Travis integration for real.
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/main.yml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tasks/main.yml b/tasks/main.yml index 144c455..8ee5d87 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -13,9 +13,16 @@ apt: name=ntp state=installed when: ansible_os_family == 'Debian' -- name: Ensure NTP is running. +- name: Ensure NTP is running and enabled at system start. 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 + when: !ntp_enabled |