-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup-nodes.yml
27 lines (27 loc) · 905 Bytes
/
setup-nodes.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
- name: Setup Monero Public Nodes
hosts: all
gather_facts: False
user: root
vars:
- do_api_key: "{{ lookup('env', 'DO_API_KEY') }}"
- hetzner_api_key: "{{ lookup('env', 'HETZNER_API_KEY') }}"
- vultr_api_key: "{{ lookup('env', 'VULTR_API_KEY') }}"
- public_ssh_key_name: "{{ lookup('env', 'PUBLIC_SSH_KEY_NAME') }}"
- public_ssh_key: "{{ lookup('env', 'PUBLIC_SSH_KEY') }}"
roles:
- digital_ocean_setup
- hetzner_setup
- vultr_setup
- role: volume_mounting
when: device_name and volume_mountpoint
- monero_user
- network_dependent_vars
- firewall
- role: monerod_download
vars:
monero_user_home: "{{ result_user_creation.home }}"
blockchain_dir: "{{ volume_mountpoint or result_user_creation.home }}/blockchain"
- role: systemd_service
vars:
monero_user_home: "{{ result_user_creation.home }}"