[copr] do restorecon immediately after the mount_fs

This commit is contained in:
Valentin Gologuzov 2015-04-09 14:03:18 +02:00
parent 0bc692d60a
commit f671aa0331

View file

@ -1,6 +1,13 @@
---
- include: "mount_fs.yml"
- 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 "
- name: install pkgs for copr-frontend
action: yum state=present pkg={{ item }}
with_items:
@ -90,10 +97,3 @@
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 "