diff --git a/.gitignore b/.gitignore index 78c46d66..3af871c8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ group_vars/all.yml group_vars/vpn_credentials.yml +inventory .vagrant roles *.retry -*.log \ No newline at end of file +*.log diff --git a/README.md b/README.md index 1fc50959..7b68eb1d 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ Ansible NAS should work on any recent Ubuntu box. Development is done on Ubuntu 5. Open up `group_vars/all.yml` and follow the instructions there for configuring your Ansible NAS. 6. If you plan to use Transmission with OpenVPN, also copy `group_vars/vpn_credentials.yml.dist` to `group_vars/vpn_credentials.yml` and fill in your settings. -7. Modify `inventory` and update it with the hostname of your NAS box, or use `localhost ansible_connection=local` if you want to run the playbook on the same box you want to use as your ansible-nas. +7. Copy `inventory.dist` to `inventory` and update it. 8. Install the dependent roles: `ansible-galaxy install -r requirements.yml` (you might need sudo to install Ansible roles) 9. Run the playbook - something like `ansible-playbook -i inventory nas.yml -b -K` should do you nicely. diff --git a/inventory b/inventory deleted file mode 100644 index 19e31736..00000000 --- a/inventory +++ /dev/null @@ -1,3 +0,0 @@ -[all] -192.168.1.30 - diff --git a/inventory.dist b/inventory.dist new file mode 100644 index 00000000..614ac3ef --- /dev/null +++ b/inventory.dist @@ -0,0 +1,6 @@ +# Example for running it directly on NAS server +# localhost ansible_connection=local + +# Example using from remote workstation +# [all] +# 192.168.1.30