From 1420529abcdda64e1f63df142d3b99e71abf43ed Mon Sep 17 00:00:00 2001
From: Jeff Geerling <geerlingguy@mac.com>
Date: Thu, 3 Mar 2016 22:59:01 -0600
Subject: Fix idempotence from NTP config management.

---
 .travis.yml       | 1 -
 handlers/main.yml | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 48c5bb9..11a7369 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -22,7 +22,6 @@ script:
 
   # Run the role/playbook with ansible-playbook.
   - "ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo"
-  - "ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo"
 
   # Run the role/playbook again, checking to make sure it's idempotent.
   - >
diff --git a/handlers/main.yml b/handlers/main.yml
index eb57480..37d0e52 100644
--- a/handlers/main.yml
+++ b/handlers/main.yml
@@ -1,3 +1,4 @@
 ---
  - name: restart ntp
    service: "name={{ ntp_daemon }} state=restarted"
+   when: ntp_enabled
-- 
cgit v1.2.3