Force local connection for third-party prep check
This commit is contained in:
@@ -153,14 +153,15 @@
|
||||
mode: "0644"
|
||||
|
||||
- name: Check for third-party preparation tasks
|
||||
local_action:
|
||||
module: ansible.builtin.stat
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user