2023-09-15 14:23:59 +00:00
|
|
|
---
|
|
|
|
- name: Verify Ansible versions
|
|
|
|
hosts: all
|
|
|
|
tags: always
|
|
|
|
become: false
|
|
|
|
run_once: true
|
|
|
|
gather_facts: false
|
|
|
|
tasks:
|
2024-06-13 15:19:32 +00:00
|
|
|
- local_action: command ./roles.py --check
|
2023-09-15 14:23:59 +00:00
|
|
|
changed_when: false
|
|
|
|
|
2024-03-21 15:53:36 +00:00
|
|
|
- name: Deploy Holesky Linux Beacon Nodes
|
2023-09-15 14:23:59 +00:00
|
|
|
become: true
|
|
|
|
serial: '{{ serial|default(1) }}'
|
2024-03-21 15:53:36 +00:00
|
|
|
hosts:
|
|
|
|
- nimbus-holesky-geth
|
|
|
|
- nimbus-holesky-erigon
|
|
|
|
- nimbus-holesky-neth
|
2023-09-27 14:36:09 +00:00
|
|
|
vars_files: layout/holesky.yml
|
2024-03-20 12:34:58 +00:00
|
|
|
roles:
|
2024-04-24 07:28:36 +00:00
|
|
|
- { role: update-netplan, tags: update-netplan, when: ansible_system == 'Linux' }
|
2024-05-22 15:53:39 +00:00
|
|
|
- { role: infra-role-swap-file, tags: swap-file }
|
|
|
|
- { role: infra-role-open-ports, tags: open-ports }
|
|
|
|
- { role: redirect-ports, tags: redirect-ports }
|
|
|
|
- { role: nimbus-era-files, tags: nimbus-era-files }
|
2024-08-26 10:42:38 +00:00
|
|
|
- { role: infra-role-mev-boost, tags: mev-boost, when: mev_boost_enabled == true }
|
2023-11-11 14:44:27 +00:00
|
|
|
tasks:
|
2024-06-20 14:01:14 +00:00
|
|
|
- include_role:
|
|
|
|
name: infra-role-beacon-node-linux
|
|
|
|
apply:
|
|
|
|
tags: always
|
|
|
|
tags: [ beacon-node ]
|
2024-09-16 06:10:36 +00:00
|
|
|
with_items: '{{ nodes_layout[inventory_hostname] }}'
|
2023-11-11 14:44:27 +00:00
|
|
|
loop_control: { loop_var: node, index_var: idx }
|
2024-06-20 14:01:14 +00:00
|
|
|
- include_role:
|
|
|
|
name: infra-role-validator-client
|
|
|
|
apply:
|
|
|
|
tags: always
|
|
|
|
tags: [ validator-client ]
|
2024-09-16 06:10:36 +00:00
|
|
|
with_items: '{{ nodes_layout[inventory_hostname] }}'
|
2024-04-24 07:28:36 +00:00
|
|
|
when: validator_client_service_enabled
|
|
|
|
loop_control: { loop_var: node, index_var: idx }
|
|
|
|
|
|
|
|
- name: Deploy Holesky Geth Nodes
|
|
|
|
become: true
|
|
|
|
serial: '{{ serial|default(1) }}'
|
|
|
|
hosts: nimbus-holesky-geth
|
|
|
|
vars_files: layout/holesky.yml
|
|
|
|
tasks:
|
2024-06-20 14:01:14 +00:00
|
|
|
- include_role:
|
|
|
|
name: infra-role-geth
|
|
|
|
apply:
|
|
|
|
tags: always
|
|
|
|
tags: [ geth ]
|
2024-04-24 07:28:36 +00:00
|
|
|
when: node.el == "geth"
|
2024-09-16 06:10:36 +00:00
|
|
|
with_items: '{{ nodes_layout[inventory_hostname] }}'
|
2024-04-24 07:28:36 +00:00
|
|
|
loop_control: { loop_var: node, index_var: idx }
|
|
|
|
|
2024-06-20 14:01:14 +00:00
|
|
|
- include_role:
|
|
|
|
name: infra-role-geth-exporter
|
|
|
|
apply:
|
|
|
|
tags: always
|
|
|
|
tags: [ geth-exporter ]
|
2024-04-24 07:28:36 +00:00
|
|
|
when: node.el == "geth"
|
2024-09-16 06:10:36 +00:00
|
|
|
with_items: '{{ nodes_layout[inventory_hostname] }}'
|
2024-04-24 07:28:36 +00:00
|
|
|
loop_control: { loop_var: node, index_var: idx }
|
|
|
|
|
|
|
|
- name: Deploy Holesky Erigon Nodes
|
|
|
|
become: true
|
|
|
|
serial: '{{ serial|default(1) }}'
|
|
|
|
hosts: nimbus-holesky-erigon
|
|
|
|
vars_files: layout/holesky.yml
|
|
|
|
tasks:
|
2024-06-20 14:01:14 +00:00
|
|
|
- include_role:
|
|
|
|
name: infra-role-erigon
|
|
|
|
apply:
|
|
|
|
tags: always
|
|
|
|
tags: [ erigon ]
|
2024-04-24 07:28:36 +00:00
|
|
|
when: node.el == "erigon"
|
2024-09-16 06:10:36 +00:00
|
|
|
with_items: '{{ nodes_layout[inventory_hostname] }}'
|
2024-04-24 07:28:36 +00:00
|
|
|
loop_control: { loop_var: node, index_var: idx }
|
|
|
|
|
|
|
|
- name: Deploy Holesky Nethermind Nodes
|
|
|
|
become: true
|
|
|
|
serial: '{{ serial|default(1) }}'
|
|
|
|
hosts: nimbus-holesky-neth
|
|
|
|
vars_files: layout/holesky.yml
|
|
|
|
tasks:
|
2024-06-20 14:01:14 +00:00
|
|
|
- include_role:
|
|
|
|
name: infra-role-nethermind
|
|
|
|
apply:
|
|
|
|
tags: always
|
|
|
|
tags: [ nethermind ]
|
2024-04-24 07:28:36 +00:00
|
|
|
when: node.el == "nethermind"
|
2024-09-16 06:10:36 +00:00
|
|
|
with_items: '{{ nodes_layout[inventory_hostname] }}'
|
2024-04-24 07:28:36 +00:00
|
|
|
loop_control: { loop_var: node, index_var: idx }
|
2024-03-21 15:53:36 +00:00
|
|
|
|
|
|
|
- name: Deploy Holesky MacOS Beacon Nodes
|
|
|
|
become: true
|
|
|
|
hosts:
|
|
|
|
- nimbus-holesky-macm2
|
|
|
|
vars_files: layout/holesky.yml
|
|
|
|
tasks:
|
2024-06-20 14:01:14 +00:00
|
|
|
- include_role:
|
|
|
|
name: infra-role-beacon-node-macos
|
|
|
|
apply:
|
|
|
|
tags: always
|
|
|
|
tags: [ beacon-node ]
|
2024-09-16 06:10:36 +00:00
|
|
|
with_items: '{{ nodes_layout[inventory_hostname] }}'
|
2024-03-21 15:53:36 +00:00
|
|
|
loop_control: { loop_var: node, index_var: idx }
|
2024-03-26 11:41:44 +00:00
|
|
|
|
|
|
|
- name: Deploy Holesky Windows Beacon Nodes
|
|
|
|
become: true
|
|
|
|
hosts:
|
|
|
|
- nimbus-holesky-windows
|
2024-03-26 15:26:50 +00:00
|
|
|
fact_path: 'C:/ansible/facts.d'
|
2024-03-26 11:41:44 +00:00
|
|
|
vars_files: layout/holesky.yml
|
|
|
|
tasks:
|
2024-06-20 14:01:14 +00:00
|
|
|
- include_role:
|
|
|
|
name: infra-role-beacon-node-windows
|
|
|
|
apply:
|
|
|
|
tags: always
|
|
|
|
tags: [ beacon-node ]
|
2024-09-16 06:10:36 +00:00
|
|
|
with_items: '{{ nodes_layout[inventory_hostname] }}'
|
2024-03-26 11:41:44 +00:00
|
|
|
loop_control: { loop_var: node, index_var: idx }
|