mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-26 19:43:11 +00:00
Remove inventory and make inventory.dist file.
- This file changes for each location.
This commit is contained in:
parent
f656879ae6
commit
167d6d9b8a
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/all.yml
|
||||||
group_vars/vpn_credentials.yml
|
group_vars/vpn_credentials.yml
|
||||||
|
inventory
|
||||||
.vagrant
|
.vagrant
|
||||||
roles
|
roles
|
||||||
*.retry
|
*.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.
|
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
|
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.
|
`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)
|
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.
|
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