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
This commit is contained in:
Alex Schultz 2020-05-22 16:01:36 -06:00
parent 4c337d7737
commit 4290e8b157
1 changed files with 8 additions and 1 deletions

View File

@ -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