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
|
|
|
|
|
|
|
|
- name: VM initialization
|
2023-11-12 15:03:21 +00:00
|
|
|
hosts: virtualservers
|
2023-10-28 23:49:29 +00:00
|
|
|
remote_user: root
|
2023-11-15 19:30:53 +00:00
|
|
|
roles:
|
|
|
|
- vm-init
|
|
|
|
|
|
|
|
- name: Base VM configuration
|
|
|
|
hosts: virtualservers
|
|
|
|
remote_user: ansible
|
|
|
|
become: true
|
2023-10-28 23:49:29 +00:00
|
|
|
roles:
|
2023-11-12 15:03:21 +00:00
|
|
|
- vm-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-12 17:31:45 +00:00
|
|
|
- name: App servers
|
|
|
|
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-15 19:30:53 +00:00
|
|
|
- name: DB 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
|
|
|
|
|
|
|
- name: Proxy servers
|
|
|
|
hosts: proxyservers
|
|
|
|
remote_user: ansible
|
2023-11-15 19:30:53 +00:00
|
|
|
become: true
|
2023-11-13 20:17:17 +00:00
|
|
|
roles:
|
|
|
|
- proxy
|
2023-11-15 19:30:53 +00:00
|
|
|
|
|
|
|
# - name: Monitoring servers
|
|
|
|
# hosts: monitorservers
|
|
|
|
# remote_user: ansible
|
|
|
|
# become: true
|
|
|
|
# roles:
|
|
|
|
# - monitoring
|