Jun 27, 2024
ansible-galaxy role init <role_name>
vars
: Contains variablestasks
: Contains tasksmeta
: Metadata about the rolehandlers
: Tasks executed upon specific eventsfiles
: Static files needed for taskstemplates
: Dynamic files using Jinja2 for variable replacementdefaults
: Default values for variablesansible-galaxy role init httpd
to create roleansible-playbook -i inventory.ini first_playbook.yaml
GATHERING FACTS
, install Apache
, copy files
, no changes detected (idempotency)