Thu, 15 Jun 2017 20:43:24 -0400
fix become setup
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 | ||
7 | The `gui_enabled` var controls whether or not to install graphical tools. | |
8 | ||
68
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
9 | # Running |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
10 | |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
11 | ## Push |
4 | 12 | |
68
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
13 | 1. Create inventory file with target host. |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
14 | 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
|
15 | 3. GUI box? `-e gui_enabled=true` |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
16 | 4. `ansible-playbook -i $inventory $args local.yml` |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
17 | |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
18 | ## Pull |
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 | 1. Install `ansible`, `git` |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
21 | 2. `echo -e '[localhost]\n127.0.0.1 ansible_connection=local' >> /etc/ansible/hosts` |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
22 | 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
|
23 | |
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
24 | ### cloud-init |
59 | 25 | |
62 | 26 | ```yaml |
27 | #cloud-config | |
28 | packages: | |
29 | - ansible | |
30 | - git | |
31 | runcmd: | |
67 | 32 | - echo -e '[localhost]\n127.0.0.1 ansible_connection=local' >> /etc/ansible/hosts |
68
539425ad28ce
update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents:
67
diff
changeset
|
33 | - ansible-pull -U https://github.com/merrilymeredith/devbox-ansible.git |
62 | 34 | ``` |
35 |