summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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