From ab31688e046fe9e66007b34389dfaf7ed81a4bba Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Tue, 20 Jun 2017 17:40:14 -0500 Subject: Fixes #36: Fix CentOS 6 minimal installs without clock files. --- tasks/clock-rhel-6.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tasks/clock-rhel-6.yml (limited to 'tasks/clock-rhel-6.yml') 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 -- cgit v1.2.3