summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Geerling <geerlingguy@mac.com>2016-03-03 22:59:01 -0600
committerJeff Geerling <geerlingguy@mac.com>2016-03-03 22:59:01 -0600
commit1420529abcdda64e1f63df142d3b99e71abf43ed (patch)
tree1d6373decb6f004f1ed005cd94ac99b306962076
parent304edfae5385ae8bccc5a22953960aac009dbfa9 (diff)
downloadntp-1420529abcdda64e1f63df142d3b99e71abf43ed.tar.gz
ntp-1420529abcdda64e1f63df142d3b99e71abf43ed.tar.bz2
ntp-1420529abcdda64e1f63df142d3b99e71abf43ed.tar.xz
ntp-1420529abcdda64e1f63df142d3b99e71abf43ed.zip
Fix idempotence from NTP config management.
-rw-r--r--.travis.yml1
-rw-r--r--handlers/main.yml1
2 files changed, 1 insertions, 1 deletions
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