Thu, 15 Jun 2017 03:21:42 -0400
notes
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 | ||
9 | ## TODO | |
4 | 10 | |
65 | 11 | - Adjust to work with ansible-pull via cloud-config userdata like below. |
12 | - looks for hostname.yml or local.yml | |
13 | - no need to `become` at start, it will run as root | |
14 | - ansible.cfg set to ask for sudo pw | |
59 | 15 | |
62 | 16 | ```yaml |
17 | #cloud-config | |
18 | packages: | |
19 | - ansible | |
20 | - git | |
21 | runcmd: | |
22 | - echo -e "[localhost]\n127.0.0.1 ansible_connection=local" >> /etc/ansible/hosts | |
23 | - ssh-keyscan github.com >> /etc/ssh/ssh_known_hosts | |
24 | - mkdir /etc/ansible/web | |
25 | - ansible-pull -d /etc/ansible/web/ -U <git repo URL> | |
26 | ``` | |
27 |