From b084ebe8f736dd246a18dbd676d4a673744d4208 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Tue, 14 Jun 2016 15:49:27 -0500 Subject: [PATCH] Fixes #9: Install required roles in current directory. --- .gitignore | 1 + README.md | 2 +- ansible.cfg | 2 ++ requirements.txt | 2 -- requirements.yml | 3 +++ 5 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 ansible.cfg delete mode 100644 requirements.txt create mode 100644 requirements.yml diff --git a/.gitignore b/.gitignore index b858696..bdc9307 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.vagrant .DS_Store *.retry +roles* diff --git a/README.md b/README.md index b469f0d..a692565 100644 --- a/README.md +++ b/README.md @@ -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). 2. Ensure Apple's command line tools are installed (`xcode-select --install` to launch the installer). 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. ## Included Applications / Configuration diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..4ece02d --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,2 @@ +[defaults] +roles_path = ./roles \ No newline at end of file diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 2300de8..0000000 --- a/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -geerlingguy.dotfiles -geerlingguy.homebrew diff --git a/requirements.yml b/requirements.yml new file mode 100644 index 0000000..4cbf04a --- /dev/null +++ b/requirements.yml @@ -0,0 +1,3 @@ +--- +- name: geerlingguy.dotfiles +- name: geerlingguy.homebrew