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 4290e8b157
)
This commit is contained in:
parent
a8ef58fd54
commit
8eaf18682e
@ -22,8 +22,15 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- include_vars: global_vars.yaml
|
- include_vars: global_vars.yaml
|
||||||
no_log: true
|
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: |-
|
shell: |-
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
if [[ -e /var/lib/config-data ]]; then
|
if [[ -e /var/lib/config-data ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user