diff --git a/roles/wordpress-install/tasks/main.yml b/roles/wordpress-install/tasks/main.yml index b8dae9ec69..ee4fe3dc8b 100644 --- a/roles/wordpress-install/tasks/main.yml +++ b/roles/wordpress-install/tasks/main.yml @@ -57,7 +57,7 @@ chdir: "{{ www_root }}/{{ item.key }}/current/" register: wp_permalink_results with_dict: wordpress_sites - when: "'No rewrite rules' in wp_permalink_check_results.results.0.stderr" + when: "wp_permalink_check_results.changed and 'No rewrite rules' in wp_permalink_check_results.results.0.stderr" - name: Install WP Multisite command: wp core multisite-install