0Pricing
Ansible Academy · Lesson

Scaffold a Role with ansible-galaxy init

Generate the standard role skeleton.

Do Not Build It By Hand

You could create every role folder manually, but Ansible gives you a command that scaffolds the whole structure in one step.

ansible-galaxy init

The ansible-galaxy init command generates a complete, ready-to-fill role skeleton with all the standard directories.

ansible-galaxy init nginx

All lessons in this course

  1. Why Roles: From Monolith to Modules
  2. The Role Directory Anatomy
  3. Scaffold a Role with ansible-galaxy init
  4. Apply Roles & Pass Role Variables
← Back to Ansible Academy