From 61941eaa8fbf024387fda886b89df7dc601945b4 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Thu, 2 Jul 2020 15:09:38 +0300 Subject: [PATCH] Fix tmpfiles-setup wait handler Precess column was present only for CentOS 8 and is not applicable for other distros. In the meanwhile Active column is present in all distros. Change-Id: Ie84eddef70d4fa7a9a42cdc2c82ec101f888545f --- playbooks/common-tasks/os-lxc-container-setup.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/common-tasks/os-lxc-container-setup.yml b/playbooks/common-tasks/os-lxc-container-setup.yml index 84c4de34a6..aa76bc42f5 100644 --- a/playbooks/common-tasks/os-lxc-container-setup.yml +++ b/playbooks/common-tasks/os-lxc-container-setup.yml @@ -134,7 +134,7 @@ - common-lxc - name: Wait for container tmpfiles-setup finish - raw: systemctl status systemd-tmpfiles-setup.service | grep Process | grep 'code=exited' >/dev/null + raw: systemctl list-units systemd-tmpfiles-setup.service --no-legend | grep 'exited' >/dev/null register: systemd_tmpfiles until: systemd_tmpfiles.rc == 0 retries: 20