68 lines
1.9 KiB
YAML
68 lines
1.9 KiB
YAML
---
|
|
- name: Verify Ansible versions
|
|
hosts: all
|
|
tags: always
|
|
become: false
|
|
run_once: true
|
|
gather_facts: false
|
|
tasks:
|
|
- local_action: command ./versioncheck.py
|
|
changed_when: false
|
|
|
|
- name: Deploy prater Linux beacon nodes
|
|
become: true
|
|
# To avoid clashing/duplicate validators.
|
|
any_errors_fatal: true
|
|
hosts:
|
|
- nimbus-prater-stable
|
|
- nimbus-prater-testing
|
|
- nimbus-prater-unstable
|
|
- nimbus-prater-unstable-libp2p-stable
|
|
- nimbus-prater-unstable-libp2p-unstable
|
|
roles:
|
|
- { role: get-geth-web3-urls, tags: get-geth-web3-urls }
|
|
tasks:
|
|
- include_role: name=infra-role-beacon-node-linux
|
|
tags: [ beacon-node, infra-role-beacon-node-linux ]
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
|
loop_control:
|
|
loop_var: node
|
|
index_var: port_offset
|
|
|
|
- name: Deploy mainnet linux beacon nodes
|
|
become: true
|
|
hosts: nimbus-prater-metal
|
|
roles:
|
|
- { role: redirect-ports, tags: [ redirect-ports ] }
|
|
- { role: get-geth-web3-urls, tags: [ get-geth-web3-urls ] }
|
|
tasks:
|
|
- include_role: name=infra-role-beacon-node-linux
|
|
tags: [ beacon-node, infra-role-beacon-node-linux ]
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
|
loop_control:
|
|
loop_var: node
|
|
index_var: port_offset
|
|
|
|
- name: Deploy prater Windows beacon nodes
|
|
become: true
|
|
hosts: nimbus-prater-windows
|
|
fact_path: 'C:/ansible/facts.d'
|
|
tasks:
|
|
- include_role: name=infra-role-beacon-node-windows
|
|
tags: [ beacon-node, infra-role-beacon-node-windows ]
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
|
loop_control:
|
|
loop_var: node
|
|
index_var: port_offset
|
|
|
|
- name: Deploy prater macOS beacon nodes
|
|
become: true
|
|
hosts: nimbus-prater-macos
|
|
tasks:
|
|
- include_role: name=infra-role-beacon-node-macos
|
|
tags: [ beacon-node, infra-role-beacon-node-macos ]
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
|
loop_control:
|
|
loop_var: node
|
|
index_var: port_offset
|