Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 558 Bytes

README.md

File metadata and controls

23 lines (20 loc) · 558 Bytes

IaC - Ansible playbooks

This repo is to manage and automate my servers using Ansible.

Pre-requisite

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