Fri, 23 Jun 2017 20:24:11 -0400
clean up task names
70 | 1 | |
2 | ||
59 | 3 | # Devbox playbook |
4 | ||
5 | This is a playbook that installs dev tools and DE tools I like to have around | |
60 | 6 | and sets up some other preferences like repositories, and drops in my dotfiles. |
59 | 7 | It's best-tested on Debian, but has some cases for OSX and FreeBSD too. |
8 | ||
9 | The `gui_enabled` var controls whether or not to install graphical tools. | |
10 | ||
68
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
11 | # Running |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
12 | |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
13 | ## Push |
4 | 14 | |
68
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
15 | 1. Create inventory file with target host. |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
16 | 2. If we can ssh as root with key, use `-u root`. If we can sudo, use `-bK`. |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
17 | 3. GUI box? `-e gui_enabled=true` |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
18 | 4. `ansible-playbook -i $inventory $args local.yml` |
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 | ## Pull |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
21 | |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
22 | 1. Install `ansible`, `git` |
70 | 23 | 2. `echo -e '[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
|
24 | 2. `ansible-pull -U https://github.com/merrilymeredith/devbox-ansible.git` |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
25 | |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
26 | ### cloud-init |
59 | 27 | |
62 | 28 | ```yaml |
29 | #cloud-config | |
30 | packages: | |
31 | - ansible | |
32 | - git | |
33 | runcmd: | |
71 | 34 | - 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
|
35 | - ansible-pull -U https://github.com/merrilymeredith/devbox-ansible.git |
62 | 36 | ``` |
37 | ||
70 | 38 | # TODO |
39 | ||
40 | - Make pull config install cron entry? | |
71 | 41 | - Debian 8 ansible is still 1.7 lol |