:skull: :skull: :skull: Before running anything, check out the playbook and understand what it does. Run it against a VM and make sure you’re happy. Do not blindly download code from the internet and trust that it’s going to work as you expect. :skull: :skull: :skull:
You can run NASible from the computer you plan to use for your NAS, or from a remote controlling machine. The steps for deployment are exactly the same, just pay attention to editing the inventory file in step 7.
-
Enable the Ubuntu Universe repository:
sudo add-apt-repository universe -
Install Ansible:
sudo apt updatesudo apt install software-properties-commonsudo apt-add-repository --yes --update ppa:ansible/ansiblesudo apt install ansible -
Clone NASible:
git clone https://github.com/davestephens/nasible.git && cd nasible -
Create your own inventory and config files by copying
inventories/sampleto your own directory:cp -rfp inventories/sample inventories/my-nasible -
Review
group_vars/all.ymlfor general settings androles/[application]/defaults/main.ymlfor individual applications. Change settings by overriding them ininventories/my-ansible-nas/group_vars/nas.yml. -
Update
inventories/my-nasible/inventory. -
Install the dependent roles:
ansible-galaxy install -r requirements.yml(you might needsudoto install Ansible roles). -
Run the playbook - something like
ansible-playbook -i inventories/my-nasible/inventory nas.yml -b -Kshould do you nicely.