From 470e8c0e3c9f46a9ccf8cf694a54f94e7b12b7a4 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 21 Nov 2017 22:01:21 +0000 Subject: [PATCH] try this --- roles/copr/backend/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/copr/backend/tasks/main.yml b/roles/copr/backend/tasks/main.yml index f7349ea5d1..fafd2725cb 100644 --- a/roles/copr/backend/tasks/main.yml +++ b/roles/copr/backend/tasks/main.yml @@ -157,7 +157,7 @@ - name: change owner for results dir if it isn't copr shell: "chown -R copr:copr /var/lib/copr/public_html" - when: copr_results_dir_st.stat.pw_name != "copr" + when: "copr" not in copr_results_dir_st.stat.pw_name - command: "ls -dZ /var/lib/copr/public_html/" register: public_html_ls