From 19dfa1942bb7452c4006055b69b5f0ac031f0ae7 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Fri, 9 May 2014 09:44:06 -0500 Subject: Add Travis integration for real. --- tasks/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tasks') 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 -- cgit v1.2.3