diff --git a/roles/environment/tasks/main.yml b/roles/environment/tasks/main.yml index 1612f5b..49090f4 100644 --- a/roles/environment/tasks/main.yml +++ b/roles/environment/tasks/main.yml @@ -153,15 +153,15 @@ mode: "0644" - name: Check for third-party preparation tasks - ansible.builtin.stat: + local_action: + module: ansible.builtin.stat path: >- {{ thirdparty_preparation_tasks_path if thirdparty_preparation_tasks_path | regex_search('^/') else playbook_dir + '/' + thirdparty_preparation_tasks_path }} - delegate_to: localhost - connection: local + become: false run_once: true register: environment_thirdparty_tasks_stat changed_when: false