Remove inventory and make inventory.dist file.

- This file changes for each location.
This commit is contained in:
Jesse Goerz 2018-12-23 15:34:19 -05:00
parent f656879ae6
commit 167d6d9b8a
4 changed files with 9 additions and 5 deletions

3
.gitignore vendored
View file

@ -1,6 +1,7 @@
group_vars/all.yml
group_vars/vpn_credentials.yml
inventory
.vagrant
roles
*.retry
*.log
*.log

View file

@ -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.

View file

@ -1,3 +0,0 @@
[all]
192.168.1.30

6
inventory.dist Normal file
View file

@ -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