diff --git a/molecule/default/prepare.yml b/molecule/default/prepare.yml index 6cdf47f..4e9fc84 100644 --- a/molecule/default/prepare.yml +++ b/molecule/default/prepare.yml @@ -6,4 +6,4 @@ - name: include vars ansible.builtin.include_vars: "{{ playbook_dir }}/../../tests/vars/main.yml" - name: include tasks - ansible.builtin.include_tasks: "{{ playbook_dir }}/../../tests/tasks/pre.yml" + ansible.builtin.import_tasks: "{{ playbook_dir }}/../../tests/tasks/pre.yml" diff --git a/tasks/main.yml b/tasks/main.yml index 88dffb0..68efbe0 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,14 +1,14 @@ # tasks file --- - name: install - ansible.builtin.include_tasks: install.yml + ansible.builtin.import_tasks: install.yml tags: - configuration - composer - composer-install - name: composer.json - ansible.builtin.include_tasks: composer-json.yml + ansible.builtin.import_tasks: composer-json.yml tags: - configuration - composer diff --git a/tests/test.yml b/tests/test.yml index df06614..69b9404 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -7,6 +7,6 @@ - name: include vars ansible.builtin.include_vars: "{{ playbook_dir }}/vars/main.yml" - name: include tasks - ansible.builtin.include_tasks: "{{ playbook_dir }}/tasks/pre.yml" + ansible.builtin.import_tasks: "{{ playbook_dir }}/tasks/pre.yml" roles: - ../../ diff --git a/tests/vagrant.yml b/tests/vagrant.yml index a5209fc..0dff732 100644 --- a/tests/vagrant.yml +++ b/tests/vagrant.yml @@ -7,6 +7,6 @@ - name: include vars ansible.builtin.include_vars: "{{ playbook_dir }}/vars/main.yml" - name: include tasks - ansible.builtin.include_tasks: "{{ playbook_dir }}/tasks/pre.yml" + ansible.builtin.import_tasks: "{{ playbook_dir }}/tasks/pre.yml" roles: - ../../