summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicky Elrod <codeblock@fedoraproject.org>2016-06-04 07:38:11 +0000
committerRicky Elrod <codeblock@fedoraproject.org>2016-06-04 07:38:11 +0000
commitd6b0a3611d7ddbe0e52fdf04f69870c3821f5fd1 (patch)
tree1bb575a540ed7282aeb06e4e4a214527fdd152d1
parentff413a111f4f14e1702e805dd190d1bd6db2fc7b (diff)
downloadansible-d6b0a3611d7ddbe0e52fdf04f69870c3821f5fd1.tar.gz
ansible-d6b0a3611d7ddbe0e52fdf04f69870c3821f5fd1.tar.xz
ansible-d6b0a3611d7ddbe0e52fdf04f69870c3821f5fd1.zip
disable chronyd on el7 so ntpd can enable
Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
-rw-r--r--tasks/cloud_setup_basic.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/tasks/cloud_setup_basic.yml b/tasks/cloud_setup_basic.yml
index 1e5db4e3d..ded4e90d1 100644
--- a/tasks/cloud_setup_basic.yml
+++ b/tasks/cloud_setup_basic.yml
@@ -23,6 +23,10 @@
- ntp
- config
+- name: disable chronyd on el7
+ service: name=chronyd state=stopped enabled=false
+ when: ansible_cmdline.ostree is not defined and ansible_distribution_major_version|int == 7
+
- name: enable the service
service: name=ntpd state=running enabled=true
when: ansible_cmdline.ostree is not defined