Force local connection for third-party prep check

This commit is contained in:
2026-01-02 19:08:27 +01:00
parent 4d72a8999f
commit 1cc1966b97

View File

@@ -153,14 +153,15 @@
mode: "0644" mode: "0644"
- name: Check for third-party preparation tasks - name: Check for third-party preparation tasks
local_action: ansible.builtin.stat:
module: ansible.builtin.stat
path: >- path: >-
{{ {{
thirdparty_preparation_tasks_path thirdparty_preparation_tasks_path
if thirdparty_preparation_tasks_path | regex_search('^/') if thirdparty_preparation_tasks_path | regex_search('^/')
else playbook_dir + '/' + thirdparty_preparation_tasks_path else playbook_dir + '/' + thirdparty_preparation_tasks_path
}} }}
delegate_to: localhost
connection: local
become: false become: false
run_once: true run_once: true
register: environment_thirdparty_tasks_stat register: environment_thirdparty_tasks_stat