Fixes #9: Install required roles in current directory.

This commit is contained in:
Jeff Geerling 2016-06-14 15:49:27 -05:00
parent e2d8a2f9f6
commit b084ebe8f7
5 changed files with 7 additions and 3 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
*.vagrant *.vagrant
.DS_Store .DS_Store
*.retry *.retry
roles*

View file

@ -15,7 +15,7 @@ This is a work in progress, and is mostly a means for me to document my current
1. [Install Ansible](http://docs.ansible.com/intro_installation.html). 1. [Install Ansible](http://docs.ansible.com/intro_installation.html).
2. Ensure Apple's command line tools are installed (`xcode-select --install` to launch the installer). 2. Ensure Apple's command line tools are installed (`xcode-select --install` to launch the installer).
3. Clone this repository to your local drive. 3. Clone this repository to your local drive.
4. Run the command `$ ansible-galaxy install -r requirements.txt` inside this directory to install required Ansible roles. 4. Run the command `$ ansible-galaxy install -r requirements.yml` inside this directory to install required Ansible roles.
5. Run `ansible-playbook main.yml -i inventory -u [username] -U [username] --ask-sudo-pass` from the same directory as this README file (substitute `[username]` for your macOS account username). Enter your account password when prompted. 5. Run `ansible-playbook main.yml -i inventory -u [username] -U [username] --ask-sudo-pass` from the same directory as this README file (substitute `[username]` for your macOS account username). Enter your account password when prompted.
## Included Applications / Configuration ## Included Applications / Configuration

2
ansible.cfg Normal file
View file

@ -0,0 +1,2 @@
[defaults]
roles_path = ./roles

View file

@ -1,2 +0,0 @@
geerlingguy.dotfiles
geerlingguy.homebrew

3
requirements.yml Normal file
View file

@ -0,0 +1,3 @@
---
- name: geerlingguy.dotfiles
- name: geerlingguy.homebrew