forked from Overclock-Validator/autoclock-rpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runner.yaml
58 lines (42 loc) · 1.43 KB
/
runner.yaml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
- name: "playbook runner"
hosts: localhost
connection: local
tasks:
- name: var check
ansible.builtin.import_tasks: var_check.yaml
- name: setup disks
ansible.builtin.import_tasks: disks.yaml
when: setup_disks|default(false)|bool == true
- name: create user
ansible.builtin.import_tasks: user.yaml
- name: install dependencies
ansible.builtin.import_tasks: deps.yaml
- name: folders
ansible.builtin.import_tasks: dirs.yaml
- name: swap
ansible.builtin.import_tasks: swap.yaml
- name: ramdisk
ansible.builtin.import_tasks: ramdisk.yaml
when: ramdisk_size is defined
- name: logrotate
ansible.builtin.import_tasks: rotate.yaml
- name: git
ansible.builtin.import_tasks: git.yaml
- name: solana keygen
ansible.builtin.import_tasks: keygen.yaml
- name: file setup
ansible.builtin.import_tasks: file_setup.yaml
- name: snapshot download
ansible.builtin.import_tasks: snapshot_downloader.yaml
when: download_snapshot|default(true)|bool == true
- name: restart without waiting
become: true
become_user: root
shell: /home/solana/restart.sh 1
when: download_snapshot|default(true)|bool == true
- name: restart with waiting
become: true
become_user: root
shell: /home/solana/restart.sh
when: download_snapshot|default(true)|bool == false