From 8eaf18682e9f94ae854f99905536d3c5463d6cf0 Mon Sep 17 00:00:00 2001 From: Alex Schultz Date: Fri, 22 May 2020 16:01:36 -0600 Subject: [PATCH] Move chcon for /var/lib/config-data The chconf for /var/lib/config-data should only apply to the hosts being targeted for the deployment and not all hosts. Change-Id: Ib56f370322f3e64fbedb24c09da7be72fc650082 Closes-Bug: #1880249 (cherry picked from commit 4290e8b1572d148a070183f04507281364b089e8) --- common/deploy-steps-playbooks-common.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/common/deploy-steps-playbooks-common.yaml b/common/deploy-steps-playbooks-common.yaml index f021904678..eb5dbf4968 100644 --- a/common/deploy-steps-playbooks-common.yaml +++ b/common/deploy-steps-playbooks-common.yaml @@ -22,8 +22,15 @@ tasks: - include_vars: global_vars.yaml no_log: true + tags: + - always - - name: ensure we get the right selinux context +- hosts: "{{ deploy_target_host }}" + name: Ensure /var/lib/config-data context + gather_facts: false + any_errors_fatal: yes + tasks: + - name: Ensure /var/lib/config-data context shell: |- set -o pipefail if [[ -e /var/lib/config-data ]]; then