diff --git a/tasks/main.yml b/tasks/main.yml index 545dbfa49a2b9960fcefa749aab63c3a79f0eccc..d471156a4b45cfe56b5f1f295a59569a1c01fd06 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -7,11 +7,12 @@ - name: "PHP Role" set_fact: role_php_started=true - tags: always + tags: 'always' - block: - - import_tasks: php.yml + - include_tasks: php.yml + tags: 'always' - name: "Link PhpEnMod for PHP 5.3" file: @@ -25,6 +26,6 @@ - name: 'PHP | Remember that this role had been run' set_fact: role_php_completed=true - tags: always + tags: 'always' when: '"php" not in excluded_roles and role_php_completed is not defined' diff --git a/tasks/php.yml b/tasks/php.yml index 95bbeb2d79491732bba0471167cc40cfa13227ce..38ea28cda6c46a83d7df4b76a8bba217c70568d0 100644 --- a/tasks/php.yml +++ b/tasks/php.yml @@ -49,8 +49,9 @@ notify: - "Apache | Restart Apache" -- import_tasks: php53.yml +- include_tasks: php53.yml when: php_version|default('5.5') == '5.3' + tags: 'always' - name: "PHP | Configuration file, fcgid.conf" template: @@ -106,8 +107,9 @@ owner=www-data group=www-data -- import_tasks: oci-{{ php_version|default('5.5') }}.yml +- include_tasks: oci-{{ php_version|default('5.5') }}.yml when: repository is defined and php_needs_oci8 + tags: 'always' - name: "PHP | Ensure ImageMagick config directory" file: