Fri, 23 Jun 2017 20:52:31 -0400
no firefox
59 | 1 | # Devbox playbook |
2 | ||
3 | This is a playbook that installs dev tools and DE tools I like to have around | |
60 | 4 | and sets up some other preferences like repositories, and drops in my dotfiles. |
59 | 5 | It's best-tested on Debian, but has some cases for OSX and FreeBSD too. |
6 | ||
77 | 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`. | |
59 | 17 | |
68
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
18 | # Running |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
19 | |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
20 | ## Push |
4 | 21 | |
77 | 22 | 1. Create inventory file with target host, maybe extra vars |
68
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
23 | 2. If we can ssh as root with key, use `-u root`. If we can sudo, use `-bK`. |
77 | 24 | 3. `ansible-playbook -i $inventory $args local.yml` |
25 | 4. After the first run, `ansible` management user is created. | |
68
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
26 | |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
27 | ## Pull |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
28 | |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
29 | 1. Install `ansible`, `git` |
70 | 30 | 2. `echo -e '[localhost]\nlocalhost ansible_connection=local' >> /etc/ansible/hosts` |
77 | 31 | 3. `ansible-pull -U https://github.com/merrilymeredith/devbox-ansible.git` |
68
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
32 | |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
33 | ### cloud-init |
59 | 34 | |
62 | 35 | ```yaml |
36 | #cloud-config | |
37 | packages: | |
38 | - ansible | |
39 | - git | |
40 | runcmd: | |
71 | 41 | - echo '[localhost]\nlocalhost ansible_connection=local' >> /etc/ansible/hosts |
68
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
42 | - ansible-pull -U https://github.com/merrilymeredith/devbox-ansible.git |
62 | 43 | ``` |
44 | ||
70 | 45 | # TODO |
46 | ||
47 | - Make pull config install cron entry? |