2022-06-15 13:03:58 +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
|
2022-06-15 13:03:58 +00:00
|
|
|
changed_when: false
|
|
|
|
|
|
|
|
- name: Deploy Spolia Testnet nodes
|
|
|
|
become: true
|
|
|
|
serial: '{{ serial|default(1) }}'
|
2023-11-21 15:31:45 +00:00
|
|
|
vars_files: layout/sepolia.yml
|
2022-06-15 13:03:58 +00:00
|
|
|
hosts:
|
2022-09-14 15:02:50 +00:00
|
|
|
- nimbus-sepolia-linux
|
2023-05-15 14:19:19 +00:00
|
|
|
roles:
|
2024-03-20 12:45:40 +00:00
|
|
|
- { role: update-netplan, tags: [ update-netplan ], when: ansible_system == 'Linux' }
|
2024-07-30 05:22:47 +00:00
|
|
|
- { role: infra-role-open-ports, tags: [ open-ports ] }
|
|
|
|
- { role: infra-role-smart-metrics, tags: [ smart-metrics ] }
|
|
|
|
- { role: redirect-ports, tags: [ redirect-ports ] }
|
|
|
|
- { role: nimbus-era-files, tags: [ nimbus-era-files ] }
|
2022-06-15 13:03:58 +00:00
|
|
|
tasks:
|
2024-06-20 14:01:14 +00:00
|
|
|
- include_role:
|
|
|
|
name: infra-role-geth
|
|
|
|
apply:
|
|
|
|
tags: always
|
|
|
|
tags: [ geth ]
|
2024-09-16 06:10:36 +00:00
|
|
|
with_items: '{{ nodes_layout[inventory_hostname] }}'
|
2022-06-15 13:03:58 +00:00
|
|
|
loop_control:
|
|
|
|
loop_var: node
|
|
|
|
index_var: idx
|
2022-07-07 14:24:06 +00:00
|
|
|
|
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] }}'
|
2022-07-07 14:24:06 +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 06:48:45 +00:00
|
|
|
when: validator_client_service_enabled
|
2022-09-27 23:56:45 +00:00
|
|
|
loop_control:
|
|
|
|
loop_var: node
|
|
|
|
index_var: idx
|
2024-07-30 05:22:47 +00:00
|
|
|
|
|
|
|
- include_role:
|
|
|
|
name: infra-role-geth-exporter
|
|
|
|
apply:
|
|
|
|
tags: always
|
|
|
|
tags: [ infra-role-geth-exporter ]
|
2024-09-16 06:10:36 +00:00
|
|
|
with_items: '{{ nodes_layout[inventory_hostname] }}'
|
2024-07-30 05:22:47 +00:00
|
|
|
loop_control: { loop_var: node, index_var: idx }
|