Run third-party prep check locally

This commit is contained in:
2026-01-02 19:02:00 +01:00
parent e264d1cabc
commit 4d72a8999f

View File

@@ -153,15 +153,15 @@
mode: "0644" mode: "0644"
- name: Check for third-party preparation tasks - name: Check for third-party preparation tasks
ansible.builtin.stat: local_action:
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 become: false
connection: local
run_once: true run_once: true
register: environment_thirdparty_tasks_stat register: environment_thirdparty_tasks_stat
changed_when: false changed_when: false