2021-03-18 12:59:45 +08:00
|
|
|
---
|
2021-05-10 15:29:38 +02:00
|
|
|
- name: Verify Ansible versions
|
2021-04-09 08:18:59 +02:00
|
|
|
hosts: all
|
|
|
|
tags: always
|
2021-05-10 15:29:38 +02:00
|
|
|
become: false
|
|
|
|
run_once: true
|
2021-04-09 08:18:59 +02:00
|
|
|
gather_facts: false
|
2021-03-18 12:59:45 +08:00
|
|
|
tasks:
|
2021-04-09 08:18:59 +02:00
|
|
|
- local_action: command ./versioncheck.py
|
|
|
|
changed_when: false
|
2021-03-18 12:59:45 +08:00
|
|
|
|
2022-09-06 19:26:25 +02:00
|
|
|
- name: Deploy prater Hetzner linux nodes
|
2021-06-28 20:03:29 +02:00
|
|
|
become: true
|
2022-06-14 11:40:18 +02:00
|
|
|
serial: '{{ serial|default(1) }}'
|
2023-11-21 16:32:29 +01:00
|
|
|
vars_files: layout/prater.yml
|
2021-06-28 20:03:29 +02:00
|
|
|
hosts: nimbus-prater-metal
|
|
|
|
roles:
|
2024-03-10 13:26:14 +01:00
|
|
|
- { role: infra-role-swap-file, tags: [ swap-file ] }
|
|
|
|
- { 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 ] }
|
2021-06-28 20:03:29 +02:00
|
|
|
tasks:
|
2023-08-07 23:05:33 +02:00
|
|
|
- include_role: name=infra-role-nethermind
|
|
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
|
|
|
when: node.get('nethermind', false)
|
|
|
|
loop_control:
|
|
|
|
loop_var: node
|
|
|
|
index_var: idx
|
2022-08-31 19:57:27 +02:00
|
|
|
- include_role: name=infra-role-geth
|
|
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
|
|
|
loop_control:
|
|
|
|
loop_var: node
|
|
|
|
index_var: idx
|
|
|
|
- include_role: name=infra-role-geth-exporter
|
|
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
|
|
|
loop_control:
|
|
|
|
loop_var: node
|
|
|
|
index_var: idx
|
2021-06-28 20:03:29 +02:00
|
|
|
- include_role: name=infra-role-beacon-node-linux
|
2021-10-04 21:55:47 +02:00
|
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
2022-09-06 19:26:25 +02:00
|
|
|
loop_control:
|
|
|
|
loop_var: node
|
|
|
|
index_var: idx
|
2022-10-11 13:39:59 +02: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
|