blob: 4b846f466a0583f0308c91bad74d1086db323197 (
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
|
# Ansible RC Playbooks
Ansible roles and playbooks to install different distros and configure `.rc`.
## Prerequisite
- [Ansible][ansible]
- [`sshpass`][sshpass] **required** for `--ask-pass`
- [`git-crypt`][git-crypt] **optional** for keeping encrypted configurations.
[sshpass]: https://man.freebsd.org/cgi/man.cgi?query=sshpass
[ansible]: https://docs.ansible.com/ansible/latest/index.html
[git-crypt]: https://github.com/AGWA/git-crypt
If you are using `git-crypt`, setup your key, and override the encrypted files (`host_vars/*.yml`)
with your own version.
If you are not using `git-crypt`, delete the `.gitattributes` file and override the encrypted files
with your own version.
Ex. `rm .gitattributes && cp host_vars/ubuntuiso.local.yml.example host_vars/ubuntuiso.local.yml`
## Boot distro live image
## Playbook: distro-install
- Follow the pre-install guides for desired distro in "Boot distro live image"
- Install ansible required dependencies
- Run the playbook
```bash
ansible-galaxy install -r requirements.yml
ansible-playbook site.yml --ask-pass
```
## Special Thanks to
- [Jeff Geerling](https://www.jeffgeerling.com/), who I learned a **LOT** from his open-source work.
|