diff --git a/tasks/main.yml b/tasks/main.yml index 91910d1f01be17e295864dba6547f835c0840456..495505c413a7ae14b32b5f04024f1a8d52511133 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -5,9 +5,12 @@ --- # file: roles/php/tasks/main.yml -- include: php.yml - when: role_php_completed is not defined +- block: + - include: php.yml + when: role_php_completed is not defined -- name: 'PHP | Remember that this role had been run' - set_fact: role_php_completed=true - when: role_php_completed is not defined + - name: 'PHP | Remember that this role had been run' + set_fact: role_php_completed=true + when: role_php_completed is not defined + + when: '"php" not in excluded_roles'