Ansible-Roles/inventory/test/group_vars/all/vars.yml
2026-05-08 22:12:36 +03:00

10 lines
625 B
YAML

---
# ── SSH connection ─────────────────────────────────────────────────────────────
ansible_user: "{{ lookup('env', 'ANSIBLE_SSH_USER') | mandatory }}"
ansible_password: "{{ lookup('env', 'ANSIBLE_SSH_PASS') | mandatory }}"
ansible_become: true
ansible_become_method: sudo
ansible_become_pass: "{{ lookup('env', 'ANSIBLE_BECOME_PASS') | default(lookup('env', 'ANSIBLE_SSH_PASS'), true) }}"
ansible_ssh_common_args: "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"