-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.yml
55 lines (53 loc) · 1.25 KB
/
run.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
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
---
- name: install pkgs
hosts: all,!blokk
become: true
remote_user: root
# gather_facts: false
vars:
ansible_ssh_pass: "{{ vault.ansible_become_default_password }}"
vars_files:
- "vars/vault.yml"
roles:
# - role: ahuffman.resolv
# resolv_nameservers:
# - "1.1.1.1"
- role: grog.package
- role: geerlingguy.pip
- role: geerlingguy.docker
- role: install/pip_packages
- role: user
new_user: "{{ vault.user }}"
- role: install/ssh
- role: artis3n.tailscale
tailscale_up_skip: yes
# TODO: make a role to install nix packages
### LXCs/VMs/VPS
# - name: set up crab
# hosts: crab
# become: true
# vars_files:
# - "vars/vault.yml"
# roles:
# - role: grog.package
# - role: geerlingguy.docker
# - role: user
# new_user: "{{ vault.user }}"
# - role: install/ssh
# - role: crab
# - role: compose_gen
- name: set up backup
hosts: all
become: true
vars_files:
- "vars/vault.yml"
roles:
- role: grog.package
package_list:
- name: borgbackup
- name: borgmatic
- role: backup/borgbase
- role: backup/borg
borg_encryption_passphrase: "{{ vault.borg_passphrase }}"
borg_backup_dirs:
- "/home/{{ vault.user }}"