Create /var/lib/config-data if it doesn't exist.
When performing the Undercloud upgrade from OSP13
to OSP16, we start from an almost empty Undercloud
node which has been upgraded to RHEL8 via Leapp.
The /var/lib/config-data is being lost during the
upgrade procedure, so this task makes sure that the
folder exists before checking the selinux state.
Change-Id: I760a4e532e0c299efcf57cee68e8e8f93795ea29
(cherry picked from commit ee5d5e55ee
)
This commit is contained in:
parent
cfd03a276f
commit
18f2c27962
|
@ -1220,6 +1220,12 @@ outputs:
|
|||
tasks:
|
||||
- include_vars: global_vars.yaml
|
||||
no_log: true
|
||||
- name: make sure /var/lib/config-data exists
|
||||
file:
|
||||
path: /var/lib/config-data
|
||||
state: directory
|
||||
setype: svirt_sandbox_file_t
|
||||
selevel: s0
|
||||
- name: ensure we get the right selinux context
|
||||
command: chcon -R -t svirt_sandbox_file_t /var/lib/config-data
|
||||
args:
|
||||
|
|
Loading…
Reference in New Issue