Run package check for openstack-selinux in privileged mode

rpm -V command needs to be run as root for some packages.
The current script fails with openstack-selinux package, which is included in tripleo_bootstrap_packages_bootstrap.

Closes-Bug: #1981353
Change-Id: I278f1a99b8a7dfb2e4fbd74718cb23791002e5d4
(cherry picked from commit a89edcd010)
This commit is contained in:
Yusuke Okada 2022-07-11 15:41:49 -04:00 committed by Cedric Jeanneret
parent 6a6fcd2ebc
commit e5cb152f4c
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@
- rpm_query_result.rc > 0
- name: Ensure packages are actually well installed
become: true
command: "rpm -V {{ tripleo_bootstrap_packages_bootstrap | join(' ') }}"
register: rpm_verify_result
failed_when: