Add host_vars/localhost to fix sudo on Semaphore runner

delegate_to: localhost tasks inherit the Semaphore host's system ansible.cfg
which has become=True. An explicit localhost inventory entry with
ansible_become: false overrides this at inventory precedence level.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
sam 2026-03-01 00:53:23 -07:00
parent af320f2341
commit 1029cccc11

5
host_vars/localhost.yml Normal file
View File

@ -0,0 +1,5 @@
# Connection settings for localhost (used by delegate_to: localhost tasks
# and the report generation play that runs on the Semaphore runner itself).
# Explicit settings here override any system-wide ansible.cfg become=True.
ansible_connection: local
ansible_become: false