diff --git a/roles/_init/tasks/drupal7.yml b/roles/_init/tasks/drupal7.yml index b1781c1b..3053c5c4 100644 --- a/roles/_init/tasks/drupal7.yml +++ b/roles/_init/tasks/drupal7.yml @@ -10,3 +10,8 @@ - name: Ensure we have a drush binary. import_role: name: cli/drush + +- name: Ensure we have a cachetool binary. + ansible.builtin.import_role: + name: cli/cachetool + when: install_php_cachetool diff --git a/roles/_init/tasks/drupal8.yml b/roles/_init/tasks/drupal8.yml index 478b4426..7c64719e 100644 --- a/roles/_init/tasks/drupal8.yml +++ b/roles/_init/tasks/drupal8.yml @@ -6,3 +6,8 @@ - name: Define path to drush for currently live build. set_fact: drush_live_bin: "{{ drush_live_bin | default('{{ live_symlink_dest }}/vendor/bin/drush') }}" + +- name: Ensure we have a cachetool binary. + ansible.builtin.import_role: + name: cli/cachetool + when: install_php_cachetool diff --git a/roles/_init/tasks/main.yml b/roles/_init/tasks/main.yml index 225e9b60..f57be10e 100644 --- a/roles/_init/tasks/main.yml +++ b/roles/_init/tasks/main.yml @@ -118,8 +118,3 @@ ansible.builtin.include_tasks: "{{ project_type }}.yml" when: - _project_type_task_result.stat.exists - -- name: Ensure we have a cachetool binary. - ansible.builtin.import_role: - name: cli/cachetool - when: install_php_cachetool diff --git a/roles/_init/tasks/matomo.yml b/roles/_init/tasks/matomo.yml index 6f34c92f..32f693a1 100644 --- a/roles/_init/tasks/matomo.yml +++ b/roles/_init/tasks/matomo.yml @@ -1,3 +1,5 @@ --- - -# Nothing to do here. \ No newline at end of file +- name: Ensure we have a cachetool binary. + ansible.builtin.import_role: + name: cli/cachetool + when: install_php_cachetool diff --git a/roles/_init/tasks/mautic.yml b/roles/_init/tasks/mautic.yml index 6f34c92f..32f693a1 100644 --- a/roles/_init/tasks/mautic.yml +++ b/roles/_init/tasks/mautic.yml @@ -1,3 +1,5 @@ --- - -# Nothing to do here. \ No newline at end of file +- name: Ensure we have a cachetool binary. + ansible.builtin.import_role: + name: cli/cachetool + when: install_php_cachetool