Ansible Galaxy commands
Before finishing this chapter on Ansible Galaxy, let’s quickly discuss some other useful commands.
The ansible-galaxy
command has some of the basic functionality you would expect, such as the following:
$ ansible-galaxy --version $ ansible-galaxy --help
This displays details of the version and basic help options on the command, respectively.
The ansible-galaxy
command is split into two parts, which we have already touched upon.
First, there is ansible-galaxy collection
; from here, you can add the following commands:
download
: Retrieves collections and their dependencies, such as tarballs, which is an archive format for Linux machines for offline installations.init
: Set up a new collection with the foundational structure.build
: Construct an Ansible collection artifact suitable for publication to Ansible Galaxy.publish
: Release a collection artifact to Ansible Galaxy.install
: Add collection(s) from the specified...