From f84a1ea988750aac1225e1349ba32a7db90c05ba Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Thu, 20 Feb 2020 14:22:45 +0100 Subject: [PATCH] cloud_setup_basic: unmask tmp.mount Since we enable logrotate automatically on all infrastructure VMs (if Fedora), it requires tmp.mount unmasked nowadays. --- tasks/cloud_setup_basic.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/cloud_setup_basic.yml b/tasks/cloud_setup_basic.yml index 5eddbc395a..6b1f0be239 100644 --- a/tasks/cloud_setup_basic.yml +++ b/tasks/cloud_setup_basic.yml @@ -81,3 +81,9 @@ when: updated is defined tags: - packages + +- name: ensure tmp.mount is not masked, logrotate start would fail + systemd: + name: tmp.mount + masked: no + when: ansible_distribution_major_version|int >= 30 and ansible_distribution == 'Fedora'