mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-04 09:43:05 +08:00
[copr] restorecon for pgsql data dir if it has wrong selinux context
This commit is contained in:
@@ -89,3 +89,11 @@
|
||||
- name: set dev banner for dev instance
|
||||
when: devel
|
||||
copy: src=banner-include.html dest=/var/lib/copr/
|
||||
|
||||
|
||||
- command: "ls -dZ /var/lib/pgsql"
|
||||
register: pgsql_ls
|
||||
|
||||
- name: update selinux context for postgress db dir if it's wrong
|
||||
command: "restorecon -vvRF /var/lib/pgsql"
|
||||
when: "'postgresql_db_t' not in pgsql_ls.stdout "
|
||||
|
||||
Reference in New Issue
Block a user