Jakub Sokołowski 4ef143ed20
ansible/main: run DB setup before node setup
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-03-18 20:06:16 +01:00

31 lines
905 B
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: Configure Waku Storage DB Nodes
serial: '{{ serial|default(1) }}'
hosts: store-db
roles:
- { role: infra-role-open-ports, tags: open-ports }
- { role: infra-role-swap-file, tags: swap-file }
- { role: infra-role-postgres-ha, tags: postgres-ha }
- name: Configure Waku Bootstrap and Storage Nodes
serial: '{{ serial|default(1) }}'
hosts:
- boot
- store
roles:
- { role: infra-role-open-ports, tags: open-ports }
- { role: infra-role-swap-file, tags: swap-file }
- { role: infra-role-certbot, tags: certbot }
- { role: infra-role-nim-waku, tags: nim-waku }
- { role: infra-role-nginx, tags: nginx }