2023-10-28 23:49:29 +00:00
|
|
|
# vim: ft=yaml.ansible
|
2023-10-29 19:46:52 +00:00
|
|
|
# code: language=ansible
|
2023-10-28 23:49:29 +00:00
|
|
|
---
|
2023-11-15 19:30:53 +00:00
|
|
|
- name: Proxmox servers
|
|
|
|
hosts: proxmox_infra
|
|
|
|
remote_user: root
|
|
|
|
roles:
|
|
|
|
- pve-common
|
|
|
|
|
|
|
|
# - name: Control servers
|
|
|
|
# hosts: control_infra
|
|
|
|
# remote_user: root
|
|
|
|
# roles:
|
|
|
|
# - ctl-common
|
|
|
|
|
2023-11-25 17:40:00 +00:00
|
|
|
- name: Base configuration
|
2023-11-15 19:30:53 +00:00
|
|
|
hosts: virtualservers
|
|
|
|
remote_user: ansible
|
|
|
|
become: true
|
2023-10-28 23:49:29 +00:00
|
|
|
roles:
|
2023-11-25 17:40:00 +00:00
|
|
|
- virt-common
|
2023-11-12 17:31:45 +00:00
|
|
|
|
2023-11-15 19:30:53 +00:00
|
|
|
- name: Docker hosts
|
|
|
|
hosts: appservers:proxyservers:monitorservers
|
|
|
|
become: true
|
|
|
|
roles:
|
|
|
|
- docker
|
|
|
|
|
2023-11-25 17:40:00 +00:00
|
|
|
- name: Application servers
|
2023-11-12 17:31:45 +00:00
|
|
|
hosts: appservers
|
|
|
|
remote_user: ansible
|
2023-11-15 19:30:53 +00:00
|
|
|
become: true
|
2023-11-12 17:31:45 +00:00
|
|
|
roles:
|
|
|
|
- apps
|
|
|
|
|
2023-11-25 17:40:00 +00:00
|
|
|
# - name: Media servers
|
|
|
|
# hosts: mediaservers
|
|
|
|
# remote_user: ansible
|
|
|
|
# become: true
|
|
|
|
# roles:
|
|
|
|
# - jellyfin
|
|
|
|
|
|
|
|
- name: Database servers
|
2023-11-12 17:31:45 +00:00
|
|
|
hosts: dbservers
|
|
|
|
remote_user: ansible
|
2023-11-15 19:30:53 +00:00
|
|
|
become: true
|
2023-11-12 17:31:45 +00:00
|
|
|
roles:
|
|
|
|
- postgresql
|
2023-11-13 20:17:17 +00:00
|
|
|
|
2023-11-15 19:30:53 +00:00
|
|
|
# - name: Monitoring servers
|
|
|
|
# hosts: monitorservers
|
|
|
|
# remote_user: ansible
|
|
|
|
# become: true
|
|
|
|
# roles:
|
|
|
|
# - monitoring
|
2023-11-25 17:43:09 +00:00
|
|
|
|
|
|
|
- name: Proxy servers
|
|
|
|
hosts: proxyservers
|
|
|
|
remote_user: ansible
|
|
|
|
become: true
|
|
|
|
roles:
|
|
|
|
- proxy
|