infra-faucet/ansible/main.yml

69 lines
1.9 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: Install certs, open ports, add SWAP
hosts: faucet-master
roles:
- { role: origin-certs, tags: origin-certs }
- { role: open-ports, tags: open-ports }
- { role: swap-file, tags: swap-file }
- name: Configure Ropsten faucet
hosts: faucet-master
roles:
- { role: infra-role-geth, tags: infra-role-geth }
- { role: infra-role-geth-exporter, tags: infra-role-geth-exporter }
- { role: faucet-api, tags: faucet-api }
vars:
faucet_network: 'ropsten'
faucet_cont_port: 3000
geth_sync_mode: 'snap'
geth_port: 30303
geth_rpc_port: 8545
geth_metrics_port: 6060
geth_websocket_port: 8546
geth_expo_cont_port: 9200
geth_cont_mem_ratio: 0.4
geth_bootnodes: '{{ revived_ropsten_bootnodes }}'
- name: Configure Rinkeby faucet
hosts: faucet-master
roles:
- { role: infra-role-geth, tags: infra-role-geth }
- { role: infra-role-geth-exporter, tags: infra-role-geth-exporter }
- { role: faucet-api, tags: faucet-api }
vars:
faucet_network: 'rinkeby'
faucet_cont_port: 3001
geth_port: 30304
geth_rpc_port: 8547
geth_metrics_port: 6061
geth_websocket_port: 8548
geth_expo_cont_port: 9201
geth_cont_mem_ratio: 0.2
- name: Configure Goerli faucet
hosts: faucet-master
roles:
- { role: infra-role-geth, tags: infra-role-geth }
- { role: infra-role-geth-exporter, tags: infra-role-geth-exporter }
- { role: faucet-api, tags: faucet-api }
vars:
faucet_network: 'goerli'
faucet_cont_port: 3002
geth_sync_mode: 'snap'
geth_port: 30305
geth_rpc_port: 8549
geth_metrics_port: 6062
geth_websocket_port: 8550
geth_expo_cont_port: 9202
geth_cont_mem_ratio: 0.4