From 20420ec15523d24d26fb7c0e9346c043d437457c Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Wed, 31 Dec 2014 09:56:09 -0600 Subject: [PATCH] Issue #2: Add inventory file so playbook can be run in fresh environment. --- README.md | 2 +- inventory | 2 ++ main.yml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 inventory diff --git a/README.md b/README.md index 872413f..b016e7d 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ This is a work in progress, and is mostly a means for me to document my current 1. Clone this repository somewhere on your local drive. 2. [Install Ansible](http://docs.ansible.com/intro_installation.html). 3. Run the command `$ ansible-galaxy install -r requirements.txt` inside this directory to install required Ansible roles. - 3. Run `ansible-playbook main.yml --ask-sudo-pass` from the same directory as this README file. + 3. Run `ansible-playbook main.yml -i inventory --ask-sudo-pass` from the same directory as this README file. ## Included Applications / Configuration diff --git a/inventory b/inventory new file mode 100644 index 0000000..0dd74f1 --- /dev/null +++ b/inventory @@ -0,0 +1,2 @@ +[localhost] +127.0.0.1 diff --git a/main.yml b/main.yml index 4424f64..97b52f7 100644 --- a/main.yml +++ b/main.yml @@ -1,5 +1,5 @@ --- -- hosts: 127.0.0.1 +- hosts: localhost user: jgeerling connection: local