Force local connection on delegated op tasks

delegate_to: localhost alone still uses SSH, which hangs on the
Semaphore controller. Add connection: local so the op tasks run in
the controller process directly.
This commit is contained in:
lorentz 2026-04-21 01:56:22 +00:00
parent b7196c3fc6
commit 323616f802

View file

@ -26,6 +26,7 @@
changed_when: false changed_when: false
check_mode: no check_mode: no
delegate_to: localhost delegate_to: localhost
connection: local
become: false become: false
no_log: true no_log: true
environment: environment:
@ -39,6 +40,7 @@
register: op_item register: op_item
check_mode: no check_mode: no
delegate_to: localhost delegate_to: localhost
connection: local
become: false become: false
no_log: true no_log: true
environment: environment:
@ -68,6 +70,7 @@
- name: Create 1Password item - name: Create 1Password item
when: op_check.rc != 0 when: op_check.rc != 0
delegate_to: localhost delegate_to: localhost
connection: local
become: false become: false
no_log: true no_log: true
shell: | shell: |