Interview Prep/Ansible/Rapid-Fire Commands

How do you scaffold a new role or collection?

BeginnerProductionRapid-Fire Commands
Answer
ansible-galaxy role init roles/nginx
ansible-galaxy collection init acme.platform
cd roles/nginx && molecule init scenario default --driver-name docker

Most teams keep their own skeleton with the house lint config, README template and Molecule scenario: ansible-galaxy role init --role-skeleton=skeletons/role roles/nginx.

All Ansible questions Roadmap: Ansible

More on Rapid-Fire Commands