mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-10 06:04:15 +00:00
Merge pull request #34 from jgoerz/make-inventory-dist
Remove inventory and make inventory.dist file.
This commit is contained in:
commit
6d4fcd386b
4 changed files with 9 additions and 5 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,6 @@
|
|||
group_vars/all.yml
|
||||
group_vars/vpn_credentials.yml
|
||||
inventory
|
||||
.vagrant
|
||||
roles
|
||||
*.retry
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
[all]
|
||||
192.168.1.30
|
||||
|
6
inventory.dist
Normal file
6
inventory.dist
Normal 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
|
Loading…
Reference in a new issue