ansible-galaxy
Perform various Role related operations.
Synopsis
- ansible-galaxy [delete|import|info|init|install|list|login|remove|search|setup] [--help] [options] ...
Description
command to manage Ansible roles in shared repositories, the default of which is Ansible Galaxy https://galaxy.ansible.com.
Common Options
—remove
<REMOVE_ID>
- Remove the integration matching the provided ID value. Use –list to see ID values.
Actions
delete
Delete a role from Ansible Galaxy.
import
used to import a role into Ansible Galaxy
—branch
<REFERENCE>
- The name of a branch to import. Defaults to the repository’s default branch (usually master)
info
prints out detailed information about an installed role as well as info available from the galaxy API.
-p
,
—roles-path
- The path to the directory containing your roles. The default is the roles_path configured in your ansible.cfg file (/etc/ansible/roles if not configured)
init
creates the skeleton framework of a role that complies with the galaxy metadata format.
—init-path
<INIT_PATH>
- The path in which the skeleton role will be created. The default is the current working directory.
—type
<ROLE_TYPE>
- Initialize using an alternate role type. Valid types include: ‘container’, ‘apb’ and ‘network’.
install
uses the args list of roles to be installed, unless -f was specified. The list of rolescan be a name (which will be downloaded via the galaxy API and github), or it can be a local .tar.gz file.
-p
,
—roles-path
- The path to the directory containing your roles. The default is the roles_path configured in your ansible.cfg file (/etc/ansible/roles if not configured)
list
lists the roles installed on the local system or matches a single role passed as an argument.
-p
,
—roles-path
- The path to the directory containing your roles. The default is the roles_path configured in your ansible.cfg file (/etc/ansible/roles if not configured)
login
verify user’s identify via Github and retrieve an auth token from Ansible Galaxy.
remove
removes the list of roles passed as arguments from the local system.
-p
,
—roles-path
- The path to the directory containing your roles. The default is the roles_path configured in your ansible.cfg file (/etc/ansible/roles if not configured)
search
searches for roles on the Ansible Galaxy server
-p
,
—roles-path
- The path to the directory containing your roles. The default is the roles_path configured in your ansible.cfg file (/etc/ansible/roles if not configured)
setup
Setup an integration from Github or Travis for Ansible Galaxy roles
—remove
<REMOVE_ID>
- Remove the integration matching the provided ID value. Use –list to see ID values.
Environment
The following environment variables may be specified.
ANSIBLE_CONFIG
– Override the default ansible config file
Many more are available for most options in ansible.cfg
Files
/etc/ansible/ansible.cfg
– Config file, used if present
~/.ansible.cfg
– User config file, overrides the default config if present
Author
Ansible was originally written by Michael DeHaan.
See the AUTHORS file for a complete list of contributors.
Copyright
Copyright © 2017 Red Hat, Inc | Ansible.
Ansible is released under the terms of the GPLv3 License.
See also
ansible(1), ansible-config(1), ansible-console(1), ansible-doc(1), ansible-galaxy(1), ansible-inventory(1), ansible-playbook(1), ansible-pull(1), ansible-vault(1),