OnCallReady

Commands

ansible-galaxy - Perform various Role and Collection related operations

ansible-galaxy {role,collection} {init,install,list,remove} [options]

Options you will use

-p, --roles-path / --collections-path PATH
Where to install.
-r, --requirements-file FILE
A file with roles and/or collections to install.
--force
Force overwriting an existing role or collection.
--init-path PATH
The path in which the skeleton will be created.

Examples

$ ansible-galaxy role init roles/nginx

a role skeleton

$ ansible-galaxy collection install -r requirements.yml

the collections the project pins

$ ansible-galaxy collection list

what is installed, where

Taught in

Try ansible-galaxy in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.