1 |
|
2 |
|
3 # Devbox playbook |
1 # Devbox playbook |
4 |
2 |
5 This is a playbook that installs dev tools and DE tools I like to have around |
3 This is a playbook that installs dev tools and DE tools I like to have around |
6 and sets up some other preferences like repositories, and drops in my dotfiles. |
4 and sets up some other preferences like repositories, and drops in my dotfiles. |
7 It's best-tested on Debian, but has some cases for OSX and FreeBSD too. |
5 It's best-tested on Debian, but has some cases for OSX and FreeBSD too. |
8 |
6 |
9 The `gui_enabled` var controls whether or not to install graphical tools. |
7 # Interesting Variables |
|
8 |
|
9 ## `gui_enabled` |
|
10 |
|
11 Boolean. Install and configure GUI tools, or with vim, choose between `gtk` and |
|
12 `nox`. |
|
13 |
|
14 ## `disable_stock_users` |
|
15 |
|
16 Boolean. Disable stock users like `pi` or `pine64`. |
10 |
17 |
11 # Running |
18 # Running |
12 |
19 |
13 ## Push |
20 ## Push |
14 |
21 |
15 1. Create inventory file with target host. |
22 1. Create inventory file with target host, maybe extra vars |
16 2. If we can ssh as root with key, use `-u root`. If we can sudo, use `-bK`. |
23 2. If we can ssh as root with key, use `-u root`. If we can sudo, use `-bK`. |
17 3. GUI box? `-e gui_enabled=true` |
24 3. `ansible-playbook -i $inventory $args local.yml` |
18 4. `ansible-playbook -i $inventory $args local.yml` |
25 4. After the first run, `ansible` management user is created. |
19 |
26 |
20 ## Pull |
27 ## Pull |
21 |
28 |
22 1. Install `ansible`, `git` |
29 1. Install `ansible`, `git` |
23 2. `echo -e '[localhost]\nlocalhost ansible_connection=local' >> /etc/ansible/hosts` |
30 2. `echo -e '[localhost]\nlocalhost ansible_connection=local' >> /etc/ansible/hosts` |
24 2. `ansible-pull -U https://github.com/merrilymeredith/devbox-ansible.git` |
31 3. `ansible-pull -U https://github.com/merrilymeredith/devbox-ansible.git` |
25 |
32 |
26 ### cloud-init |
33 ### cloud-init |
27 |
34 |
28 ```yaml |
35 ```yaml |
29 #cloud-config |
36 #cloud-config |