This repo is to manage and automate my servers using Ansible.
In Windows WSL
we need to export the variable ANSIBLE_CONFIG
:
export ANSIBLE_CONFIG=/mnt/c/Users/Zolo/projects/IaC/ansible.cfg
´main.yml´ is the main playbook. Run it with following command:
ansible-playbook main.yml -i inv.ini
Or run individual playbooks
ansible-playbook ./playbooks/apt.yml -i inv.ini
To scaffold a new role use the following command:
ansible-galaxy init my_role