playbooks/inventory.yml
Kumi 63be88788e
feat: add Ansible support and improve inventory
- Added a new Python script to dynamically handle Ansible playbook executions with password prompts.
- Enhanced `inventory.yml` by defining explicit `ansible_name` and `ansible_host` for each host to improve manageability.
- Introduced `.gitignore` to omit `venv/` and `.vscode/` directories from version control, ensuring a cleaner repository.
- Updated `apt.yml` playbook to unify update and upgrade tasks, using `ansible.builtin.apt`.
- Created `requirements.txt` to manage Python dependencies, including `ansible`, `ansible-lint`, and `pyyaml`.

These changes streamline the management of Ansible hosts and execution of playbooks, aligning with best practices for ongoing development.
2024-10-25 18:50:37 +02:00

56 lines
1.4 KiB
YAML

---
all:
children:
debian:
hosts:
burns:
ansible_name: burns
ansible_host: 10.123.1.1
selma:
ansible_name: selma
ansible_host: 10.123.1.3
lardlad:
ansible_name: lardlad
ansible_host: 10.123.1.4
lance:
ansible_name: lance
ansible_host: 10.123.1.5
chimpman:
ansible_name: chimpman
ansible_host: 10.123.1.6
edna:
ansible_name: edna
ansible_host: 10.123.1.7
nelson:
ansible_name: nelson
ansible_host: 10.123.1.8
hannah:
ansible_name: hannah
ansible_host: 10.123.1.9
marge:
ansible_name: marge
ansible_host: 10.123.1.10
andy:
ansible_name: andy
ansible_host: 10.123.1.11
herman:
ansible_name: herman
ansible_host: 10.123.1.12
frink:
ansible_name: frink
ansible_host: 10.123.1.13
homer:
ansible_name: homer
ansible_host: 10.123.1.14
smaragdente:
ansible_name: smaragdente
ansible_host: 10.123.2.1
zwergente:
ansible_name: zwergente
ansible_host: 10.123.2.2
pekingente:
ansible_name: pekingente
ansible_host: 10.123.2.3
stockente:
ansible_name: stockente
ansible_host: 10.123.2.4