From 6963060da756b57504044008c29f83491992e599 Mon Sep 17 00:00:00 2001 From: Mats Blomdahl Date: Tue, 11 Dec 2018 17:30:14 +0100 Subject: [PATCH] #11 Re-install `cronie` after setting up yum-cron, experiencing locking issues with anacron, hoping this might help! https://bugzilla.redhat.com/show_bug.cgi?id=517321 --- roles/common/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 5bc378f..8051177 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -150,6 +150,7 @@ - name: install yum-cron yum: name=yum-cron state=present + register: yum_cron_install tags: common - name: extend root filesystem from 2g to 3g @@ -160,4 +161,9 @@ service: name=yum-cron state=started enabled=yes tags: common +- name: re-install cronie after setting up yum-cron (locking errors) + shell: yum reinstall -y cronie + when: yum_cron_install is changed + tags: common + ...