mirror of
https://github.com/mvaldes14/ansible.git
synced 2026-09-25 02:30:47 +00:00
No description
- Jinja 48.1%
- Shell 27.1%
- Dockerfile 24.8%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| inventory | ||
| playbooks | ||
| roles | ||
| .ansible-lint | ||
| .gitignore | ||
| AGENTS.md | ||
| ansible.cfg | ||
| LICENSE | ||
| README.md | ||
| requirements.txt | ||
| requirements.yml | ||
| Taskfile.yml | ||
Overview
Repo used to install and normalize some of the common tasks done in new machines.
Playbooks
- Restart: Sets up machines that belong to the homelab cluster, drains and reboots them
- Remote Work: Prepares machines for remote work sessions
- Demo: Scratch playbook used for recordings
Testing
Since this is ansible we use molecule to test the various scenarios done by the roles/playbooks.
Everything is driven from Taskfile.yml at the repo root via
Task — no need to cd into a role or export
ANSIBLE_ROLES_PATH by hand.
task # list every task and the roles that have a scenario
task test # full molecule run for node_setup
task converge # apply the role, leave the container up for poking at
task login # shell into that container
task destroy # clean up
task lint # ansible-lint over the repo
task test ROLE=<role> # pick a different role
Needs a running Docker daemon. If molecule isn't available, task deps rebuilds
.venv from requirements.txt.