sam b8dde7f2ca Remove ansible_become from inventory to fix delegate_to: localhost inheritance
ansible_become: true in host inventory vars leaks into delegate_to: localhost
tasks in Ansible 2.18, causing those tasks to try sudo on the Semaphore
runner (which has no sudo). Instead, become: true is set at the play level
in the playbook where needed, which does NOT propagate to delegated tasks.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-01 01:02:27 -07:00

54 lines
1.7 KiB
YAML

# Targeted inventory — first Docker discovery run
# 5 hosts manually selected for initial credential testing
#
# NOTE: become is NOT set here — play-level become: true in the playbook
# handles privilege escalation. This prevents ansible_become: true from
# leaking into delegate_to: localhost tasks on the Semaphore runner.
all:
hosts:
# ── 10.40.40.0/24 ──────────────────────────────────────────────────────
ubuntu-server-01:
ansible_host: 10.40.40.2
ansible_user: sam
ansible_ssh_pass: Lewiss4224@@@
ansible_become_pass: Lewiss4224@@@
ubuntu-server-02:
ansible_host: 10.40.40.3
ansible_user: sam
ansible_ssh_pass: Lewiss4224@@@
ansible_become_pass: Lewiss4224@@@
sp-ie-containerlab:
ansible_host: 10.40.40.156
ansible_user: user
ansible_ssh_pass: user
ansible_become_pass: user
vRouter-Host:
ansible_host: 10.40.40.184
ansible_user: user
ansible_ssh_pass: user
ansible_become_pass: user
# ── 192.168.1.0/24 ─────────────────────────────────────────────────────
wazuh-graylog-server:
ansible_host: 192.168.1.30
ansible_user: user
ansible_ssh_pass: user
ansible_become_pass: user
children:
subnet_vlan40_10_40_40:
hosts:
ubuntu-server-01: {}
ubuntu-server-02: {}
sp-ie-containerlab: {}
vRouter-Host: {}
subnet_vlan1_192_168_1:
hosts:
wazuh-graylog-server: {}