62 lines
1,002 B
YAML
62 lines
1,002 B
YAML
# vim: ft=yaml.ansible
|
|
# code: language=ansible
|
|
---
|
|
- 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
|
|
hosts: virtualservers
|
|
remote_user: root
|
|
roles:
|
|
- vm-init
|
|
|
|
- name: Base VM configuration
|
|
hosts: virtualservers
|
|
remote_user: ansible
|
|
become: true
|
|
roles:
|
|
- vm-common
|
|
|
|
- name: Docker hosts
|
|
hosts: appservers:proxyservers:monitorservers
|
|
become: true
|
|
roles:
|
|
- docker
|
|
|
|
- name: App servers
|
|
hosts: appservers
|
|
remote_user: ansible
|
|
become: true
|
|
roles:
|
|
- apps
|
|
|
|
- name: DB servers
|
|
hosts: dbservers
|
|
remote_user: ansible
|
|
become: true
|
|
roles:
|
|
- postgresql
|
|
|
|
- name: Proxy servers
|
|
hosts: proxyservers
|
|
remote_user: ansible
|
|
become: true
|
|
roles:
|
|
- proxy
|
|
|
|
# - name: Monitoring servers
|
|
# hosts: monitorservers
|
|
# remote_user: ansible
|
|
# become: true
|
|
# roles:
|
|
# - monitoring
|