This is a repository crafted to hold useful playbooks and roles to simply the setup and configure applications and services that I commonly utilize.
Install ansbile
sudo apt update
sudo apt install ansible -y
Create your inventory file
Create an INI formated file
editor ./inventory.ini
Containing
node1 ansible_connection=local local_release_dir={{ansible_env.HOME}}/releases
Create a YAML formated file
editor ./inventory.yml
Containing
all:
node1:
ansible_host: 127.0.0.1
Execute the following command
ansible-playbook -i <PATH_TO_INVETORY> <PATH_TO_PLAYBOOK>
References / good reads: