cf0e62d80c
Group hosts by OS (ubuntu/rocky) in inventory, refactor playbooks to use group-targeted plays instead of ansible_os_family conditionals, add bot host, and add Docker volume backup playbook via rsync to storage.
20 lines
420 B
YAML
20 lines
420 B
YAML
all:
|
|
vars:
|
|
ansible_user: root
|
|
children:
|
|
ubuntu:
|
|
hosts:
|
|
webserver:
|
|
ansible_host: 192.168.2.15
|
|
docker:
|
|
ansible_host: 192.168.2.10
|
|
rocky:
|
|
hosts:
|
|
pihole:
|
|
ansible_host: 192.168.2.2
|
|
bot:
|
|
ansible_host: 192.168.2.174
|
|
storage:
|
|
ansible_host: 192.168.2.115
|
|
nextcloud:
|
|
ansible_host: 192.168.2.120 |