diff options
author | Jeff Geerling <geerlingguy@mac.com> | 2017-06-21 08:58:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-21 08:58:58 -0500 |
commit | 476b758b0806559731f59c065575b6f37ab521d8 (patch) | |
tree | 5c93812cf2a43b15e015f8e61d109199cd3a181e /tasks/clock-rhel-6.yml | |
parent | a9767d7c6639eeea8b45564f7ddb5018680aea3d (diff) | |
parent | ab31688e046fe9e66007b34389dfaf7ed81a4bba (diff) | |
download | ntp-476b758b0806559731f59c065575b6f37ab521d8.tar.gz ntp-476b758b0806559731f59c065575b6f37ab521d8.tar.bz2 ntp-476b758b0806559731f59c065575b6f37ab521d8.tar.xz ntp-476b758b0806559731f59c065575b6f37ab521d8.zip |
Merge pull request #37 from geerlingguy/36-clock-file
Fixes #36: Fix CentOS 6 minimal installs without clock files.
Diffstat (limited to 'tasks/clock-rhel-6.yml')
-rw-r--r-- | tasks/clock-rhel-6.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tasks/clock-rhel-6.yml b/tasks/clock-rhel-6.yml new file mode 100644 index 0000000..1cb176e --- /dev/null +++ b/tasks/clock-rhel-6.yml @@ -0,0 +1,10 @@ +--- +- name: Check if clock file exists. + stat: path=/etc/sysconfig/clock + register: clock_file + +- name: Create clock file if it doesn't exist. + template: + src: clock.j2 + dest: /etc/sysconfig/clock + when: clock_file.stat.exists == false |