- Clone the repository:
git clone https://github.com/JoaoBrlt/ansible-setup.git- Create a virtual environment:
python3 -m venv .venv- Activate the virtual environment:
source .venv/bin/activate- Install the dependencies:
pip3 install -r requirements.txt- Activate the virtual environment:
source .venv/bin/activate- Set the required environment variables:
source .envrc- Lint the code:
ansible-lint- Test a role:
cd roles/...
molecule test- Test the playbook:
molecule test