infra-nimbus/ansible/nimbus.yml

55 lines
1.6 KiB
YAML
Raw Normal View History

---
- name: Pre-playbook checks
hosts: localhost
tasks:
- name: 'Verify Ansible version is 2.8 or newer'
assert:
that: 'ansible_version.full is version_compare("2.8", ">=")'
msg: 'Your Ansible version is lower than 2.8. Upgrade it.'
- name: Configure Nimbus master
hosts:
- nimbus-master
roles:
- { role: origin-certs, tags: origin-certs }
#- { role: nimbus-stats, tags: nimbus-stats }
2020-08-04 10:45:57 +00:00
- name: Configure shared testnet3
hosts:
2020-08-04 10:45:57 +00:00
- nimbus.test[0:5]
tags: beacon-node
tasks:
- include_role:
name: infra-role-beacon-node
tags: beacon-node
vars:
2020-08-04 10:45:57 +00:00
beacon_node_network: 'testnet3'
beacon_node_shared_testnet: 'medalla'
beacon_node_rpc_port: '11000'
beacon_node_metrics_port : '9300'
beacon_node_listening_port: '9100'
beacon_node_discovery_port: '9100'
beacon_node_cont_name: 'beacon-node-{{ beacon_node_network }}'
beacon_node_shared_testnet_cron: true
cont_restart: true
2020-08-04 10:45:57 +00:00
- name: Configure shared testnet2
hosts:
2020-08-04 10:45:57 +00:00
- nimbus.test[6:9]
tags: beacon-node
tasks:
- include_role:
name: infra-role-beacon-node
tags: beacon-node
vars:
beacon_node_network: 'testnet2'
2020-08-04 10:45:57 +00:00
beacon_node_shared_testnet: 'altona'
beacon_node_rpc_port: '11000'
beacon_node_metrics_port : '9300'
beacon_node_listening_port: '9100'
beacon_node_discovery_port: '9100'
beacon_node_cont_name: 'beacon-node-{{ beacon_node_network }}'
beacon_node_shared_testnet_cron: true
cont_restart: true