0 votes
in Ansible by

How can you create an Ansible role?

a) ansible-galaxy init rolename

b) ansible-role init rolename

c) ansible-init role rolename

d) ansible create-role rolename

1 Answer

0 votes
by

Solution: a) ansible-galaxy init rolename

Explanation: To create an Ansible role, you can use the ansible-galaxy init rolename command. This will create a new directory structure and files for the role.

...