table of contents
- stretch 2.2.1.0-2+deb9u1
- testing 2.7.7+dfsg-1
- stretch-backports 2.7.5+dfsg-1~bpo9+1
- unstable 2.7.8+dfsg-1
ANSIBLE-GALAXY(1) | System administration commands | ANSIBLE-GALAXY(1) |
NAME¶
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¶
--list--remove 'REMOVE_ID'
--version
-c, --ignore-certs
-h, --help
-s 'API_SERVER', --server 'API_SERVER'
-v, --verbose
ACTIONS¶
- info
- prints out detailed information about an installed role as well as info
available from the galaxy API.
--offline
-p, --roles-path
- search
- searches for roles on the Ansible Galaxy server
--author 'AUTHOR'
--galaxy-tags 'GALAXY_TAGS'
--platforms 'PLATFORMS'
-p, --roles-path
- setup
- Setup an integration from Github or Travis for Ansible Galaxy roles
--list
--remove 'REMOVE_ID'
- list
- lists the roles installed on the local system or matches a single role
passed as an argument.
-p, --roles-path
- remove
- removes the list of roles passed as arguments from the local system.
-p, --roles-path
- init
- creates the skeleton framework of a role that complies with the galaxy
metadata format.
--init-path 'INIT_PATH'
--offline
--role-skeleton 'ROLE_SKELETON'
--type 'ROLE_TYPE'
-f, --force
- install
- uses the args list of roles to be installed, unless -f was specified. The list of roles
- System Message: WARNING/2 (docs/man/man1/ansible-galaxy.1.rst:, line 168)
- Definition list ends without a blank line; unexpected unindent.
can be a name (which will be downloaded via the galaxy API and github), or it can be a local .tar.gz file.
-g, --keep-scm-meta
-i, --ignore-errors
-n, --no-deps
-p, --roles-path
-r 'ROLE_FILE', --role-file 'ROLE_FILE'
- import
- used to import a role into Ansible Galaxy
--branch 'REFERENCE'
--no-wait
--role-name 'ROLE_NAME'
--status
- login
- verify user's identify via Github and retrieve an auth token from Ansible
Galaxy.
--github-token 'TOKEN'
- delete
- Delete a role from Ansible Galaxy.
ENVIRONMENT¶
The following environment variables may be specified.ANSIBLE_CONFIG -- Specify override location for the ansible config file
Many more are available for most options in ansible.cfg
For a full list check https://docs.ansible.com/. or use the ansible-config command.
FILES¶
/etc/ansible/ansible.cfg -- Config file, used if present~/.ansible.cfg -- User config file, overrides the default config if present
./ansible.cfg -- Local config file (in current working direcotry) assumed to be 'project specific' and overrides the rest if present.
As mentioned above, the ANSIBLE_CONFIG environment variable will override all others.
AUTHOR¶
Ansible was originally written by Michael DeHaan.COPYRIGHT¶
Copyright © 2018 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-inventory (1), ansible-playbook (1), ansible-pull (1), ansible-vault (1)Extensive documentation is available in the documentation site: <https://docs.ansible.com>. IRC and mailing list info can be found in file CONTRIBUTING.md, available in: <https://github.com/ansible/ansible>
Ansible 2.7.5 |