blob: c27130d5f8a496aa4c6626274a82a3b27bc05384 (
plain) (
blame)
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
|
Ansible playbooks for personal infrastructure.
INSTALL
$ python3 -m venv .env
$ source .env/bin/activate
$ pip3 install -r requirements.txt
RUN
Use master playbook to setup everything in one go.
$ ansible-playbook master.yml
Alternatively use specific playbook to setup only part of the system.
$ ansible-playbook essential.yml
$ ansible-playbook web.yml
$ ansible-playbook mail.yml
$ ansible-playbook vpn.yml
UPGRADE
Upgrade all packages on Ansible managed systems.
$ ansible-playbook sysupgrade.yml
DOTFILES
There are currently no secrets stored in dotfiles, therefore it is possible to
install dotfiles to localhost without decrypting Ansible Vault.
$ touch /tmp/ansible.cfg
$ ANSIBLE_CONFIG=/tmp/ansible.cfg \
ansible-playbook dotfiles.yml \
--extra-vars "user=`whoami`"
ROTATE VAULT PASSWORD
$ bin/rotate-vault-password
REFERENCES
[1]: https://gitlab.archlinux.org/archlinux/infrastructure
|