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:
|
|
|
|
- local_action: command ./versioncheck.py
|
|
|
|
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' }
|
|
|
|
- { role: infra-role-swap-file, tags: [ swap-file ] }
|
|
|
|
- { role: infra-role-open-ports, tags: [ open-ports ] }
|
|
|
|
- { role: redirect-ports, tags: [ redirect-ports ] }
|
2023-11-11 14:44:27 +00:00
|
|
|
tasks:
|
|
|
|
- include_role: name=infra-role-beacon-node-linux
|
|
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
|
|
|
loop_control: { loop_var: node, index_var: idx }
|
2024-04-24 07:28:36 +00:00
|
|
|
- include_role: name=infra-role-validator-client
|
|
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
|
|
|
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:
|
|
|
|
- include_role: name=infra-role-geth
|
|
|
|
when: node.el == "geth"
|
|
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
|
|
|
loop_control: { loop_var: node, index_var: idx }
|
|
|
|
|
|
|
|
- include_role: name=infra-role-geth-exporter
|
|
|
|
when: node.el == "geth"
|
|
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
|
|
|
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:
|
|
|
|
- include_role: name=infra-role-erigon
|
|
|
|
when: node.el == "erigon"
|
|
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
|
|
|
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:
|
|
|
|
- include_role: name=infra-role-nethermind
|
|
|
|
when: node.el == "nethermind"
|
|
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
|
|
|
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:
|
|
|
|
- include_role: name=infra-role-beacon-node-macos
|
|
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
|
|
|
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:
|
|
|
|
- include_role: name=infra-role-beacon-node-windows
|
|
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
|
|
|
loop_control: { loop_var: node, index_var: idx }
|