From ecee3ed4f83a7a072065b0927c6078f7c1beff47 Mon Sep 17 00:00:00 2001 From: Salt Date: Sun, 10 May 2020 08:22:02 -0500 Subject: [PATCH] Fix up our common playbook with cron handlers n stuff --- roles/common/handlers/main.yml | 8 ++++++++ roles/common/tasks/main.yml | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 roles/common/handlers/main.yml diff --git a/roles/common/handlers/main.yml b/roles/common/handlers/main.yml new file mode 100644 index 0000000..fb91194 --- /dev/null +++ b/roles/common/handlers/main.yml @@ -0,0 +1,8 @@ +#!/usr/bin/ansible-playbook +# vim:ft=ansible: +--- +- name: restart cron + service: + name: cron + state: restarted + become: yes diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 3dc3e48..5f84276 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -19,9 +19,10 @@ - python3-apt - vim become: yes -- name: Set timezone to CST +- name: Set timezone timezone: name: "America/Chicago" + notify: restart cron - name: Configure MOTD block: - name: Disable MOTD news