infra-nimbus/ansible/prater.yml

51 lines
1.6 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 Hetzner linux nodes
become: true
serial: '{{ serial|default(1) }}'
vars_files: layout/prater.yml
hosts: nimbus-prater-metal
roles:
- { role: swap-file, tags: [ swap-file ] }
- { role: open-ports, tags: [ open-ports ] }
- { role: smart-metrics, tags: [ smart-metrics ] }
- { role: redirect-ports, tags: [ redirect-ports ] }
- { role: nimbus-era-files, tags: [ nimbus-era-files ] }
tasks:
- include_role: name=infra-role-nethermind
with_items: '{{ nodes_layout[hostname] }}'
when: node.get('nethermind', false)
loop_control:
loop_var: node
index_var: idx
- 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
- include_role: name=infra-role-beacon-node-linux
with_items: '{{ nodes_layout[hostname] }}'
loop_control:
loop_var: node
index_var: idx
- 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