infra-ansible
Installation
SKILL.md
Ansible Role Writing
Follow the conventions in ~/dotfiles/stapler-scripts/roles/CLAUDE.md for all role work in this repo. This skill layers actionable process on top of those conventions.
Before Writing Anything
- Read the existing role if extending one — check
defaults/,vars/,handlers/before adding anything - Check
requirements.ymlfor available collections — don't re-implement what a collection already provides - Check
ansible.cfg—roles_path = rolesmeans role names resolve relative tostapler-scripts/
Starting a New Role
Scaffold (only create dirs you'll use)
mkdir -p stapler-scripts/roles/<name>/{tasks,handlers,defaults}