-
Install Ansible:
sudo apt update
sudo apt install software-properties-common
sudo apt-add-repository --yes --update ppa:ansible/ansible
sudo apt install ansible
-
Clone Ansible-NAS:
git clone https://github.com/esfateev/home-ansible.git && cd home-ansible
-
Create your own inventory and config files by copying
inventories/sample
to your own directory:cp -rfp inventories/sample inventories/my-ansible
-
Review
group_vars/all.yml
. Change settings by overriding them ininventories/my-ansible/group_vars/server.yml
. -
Update
inventories/my-ansible/inventory
. -
Install the dependent roles:
ansible-galaxy install -r requirements.yml
(you might needsudo
to install Ansible roles). -
Run the playbook - something like
ansible-playbook -i inventories/my-ansible/inventory server.yml -b -K
should do you nicely.
-
Notifications
You must be signed in to change notification settings - Fork 0
esfateev/AnsibleHome
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Home automation with Ansible