summaryrefslogtreecommitdiffstats
path: root/tasks/clock-rhel-6.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/clock-rhel-6.yml')
-rw-r--r--tasks/clock-rhel-6.yml10
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