Jakub Sokołowski 757b097c81 add versioncheck.py script to verify Ansible role versions
Since Ansible or Ansible Galaxy doesn't actually check role versions
itself, we have to do it ourselves. This script goes through contents of
`ansible/requirements.txt` and verifies each role is installed and has
correct version.

It also checks the version of Ansible itself.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-04-13 08:07:26 +02:00

21 lines
515 B
YAML

---
- name: 'Verify Ansible versions'
hosts: all
run_once: true
connection: local
tags: always
gather_facts: false
tasks:
- local_action: command ./versioncheck.py
changed_when: false
- name: Configure geth nodes
become: true
hosts:
- nimbus-geth-goerli
- nimbus-geth-mainnet
roles:
- { role: swap-file, tags: swap-file }
- { role: infra-role-geth, tags: infra-role-geth }
- { role: infra-role-geth-exporter, tags: infra-role-geth-exporter }