deployment-playbooks/site.yml

93 lines
1.4 KiB
YAML

---
- hosts: all
user: ubuntu
become: True
# user: root
roles:
- preconf
tags: preconf
- hosts: bootnode
become: True
roles:
- usermanager
# - logentries
- nodejs
- bootnode
- poa-logrotate
- poa-parity
- poa-pm2
- poa-netstats
- { role: poa-orchestrator, when: "(bootnode_orchestrator or 'off') == 'on'" }
- nginx
- bootnode-access
tags:
- bootnode
- hosts: validator
become: True
vars:
username: "validator"
users:
- name: "validator"
home: "/home/validator"
roles:
- usermanager
- nodejs
- poa-logrotate
- poa-parity
- poa-pm2
- poa-netstats
- validator
- validator-access
tags:
- validator
- hosts: netstat
become: True
vars:
nginx_headers: "off"
PROXY_PORT: "3000"
NETSTATS_SERVER: "http://localhost:3000"
username: "netstat"
users:
- name: "netstat"
home: "/home/netstat"
roles:
- usermanager
- nodejs
- poa-logrotate
- netstat
- nginx
- netstat-access
tags:
- netstat
- hosts: explorer
become: True
roles:
- usermanager
- nodejs
- poa-logrotate
- poa-parity
- poa-pm2
- explorer
- nginx
- explorer-access
tags:
- explorer
- hosts: moc
become: True
roles:
- usermanager
- nodejs
- poa-logrotate
- poa-parity
- poa-pm2
- poa-netstats
- moc
- moc-access
tags:
- moc