make this work with --check

This commit is contained in:
Miroslav Suchý 2015-05-18 15:36:07 +02:00
parent fb8e925362
commit bc25068db1

View file

@ -6,7 +6,7 @@
- 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 "
when: pgsql_ls.stdout is defined and 'postgresql_db_t' not in pgsql_ls.stdout
- name: install pkgs for copr-frontend
action: yum state=present pkg={{ item }}