From a451ef3473ff3fe26ebd1332e5d3a80c3fc7bd84 Mon Sep 17 00:00:00 2001 From: Sachin Prabhu Date: Thu, 18 Feb 2021 19:51:51 +0000 Subject: Restart systemd on CentOS8 The command systemctl list-units on CentOS 8 fails with Failed to list units: Access denied To avoid this problem, restart systemd. Signed-off-by: Sachin Prabhu --- vagrant/ansible/roles/common.prep/tasks/centos8.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vagrant/ansible/roles/common.prep/tasks/centos8.yml b/vagrant/ansible/roles/common.prep/tasks/centos8.yml index bb3b9bd..2d296cc 100644 --- a/vagrant/ansible/roles/common.prep/tasks/centos8.yml +++ b/vagrant/ansible/roles/common.prep/tasks/centos8.yml @@ -13,3 +13,6 @@ - name: Enable Samba nightly rpms repository command: yum-config-manager --add-repo http://artifacts.ci.centos.org/gluster/nightly-samba/samba-nightly-master.repo + +- name: Restart systemd + command: kill -TERM 1 -- cgit