sam 017a3a00ee Initial commit: playbooks and inventory for Semaphore automation
- find_docker_enroll_portainer.yml: discover Docker hosts across all VLANs,
  deploy Portainer Agent, register in Portainer, write discovery report
- inventory/hosts.yml: auto-generated from NetBox (31 hosts) + UniFi clients
  (135 unmanaged hosts not in NetBox) across vlan1/vlan40/vlan20

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

33 lines
1.2 KiB
YAML

---
# playbooks/group_vars/all.yml
#
# Defaults for all Ansible playbooks in this repo.
# Override sensitive values (portainer_api_token) via Semaphore's
# "Extra Variables" or a Vault-encrypted file, not here in plaintext.
# ---------------------------------------------------------------------------
# Portainer
# ---------------------------------------------------------------------------
portainer_url: "http://10.40.40.2:9000"
# API token: generate in Portainer → User settings → Access tokens
# Set this in Semaphore "Extra Variables" as: portainer_api_token=<token>
# Or export as an env var and reference with: "{{ lookup('env', 'PORTAINER_API_TOKEN') }}"
portainer_api_token: "{{ lookup('env', 'PORTAINER_API_TOKEN') }}"
# Port the Portainer Agent listens on (default 9001)
portainer_agent_port: 9001
# ---------------------------------------------------------------------------
# SSH defaults (override per group in host_vars/<name>.yml or Semaphore)
# ---------------------------------------------------------------------------
ansible_user: ubuntu
ansible_become: true
ansible_become_method: sudo
# SSH connection settings
ansible_ssh_common_args: >-
-o StrictHostKeyChecking=no
-o UserKnownHostsFile=/dev/null
-o ConnectTimeout=10