- 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 - manage roles using galaxy.ansible.comSYNOPSIS¶
ansible-galaxy [delete|import|info|init|install|list|login|remove|search|setup] [--help] [options] ...DESCRIPTION¶
Ansible Galaxy is a shared repository for Ansible roles. The ansible-galaxy command can be used to manage these roles, or for creating a skeleton framework for roles you’d like to upload to Galaxy.COMMON OPTIONS¶
-h, --helpINSTALL¶
The install sub-command is used to install roles.USAGE¶
$ ansible-galaxy install [options] [-r FILE | role_name(s)[,version] | tar_file(s)]Roles can be installed in several different ways:
OPTIONS¶
-f, --force-i, --ignore-errors
-n, --no-deps
-p ROLES_PATH, --roles-path=ROLES_PATH
-r ROLE_FILE, --role-file=ROLE_FILE
REMOVE¶
The remove sub-command is used to remove one or more roles.USAGE¶
$ ansible-galaxy remove role1 role2 ...OPTIONS¶
-p ROLES_PATH, --roles-path=ROLES_PATHINIT¶
The init command is used to create an empty role suitable for uploading to https://galaxy.ansible.com (or for roles in general).USAGE¶
$ ansible-galaxy init [options] role_nameOPTIONS¶
-f, --force-p INIT_PATH, --init-path=INIT_PATH
--offline
LIST¶
The list sub-command is used to show what roles are currently installed. You can specify a role name, and if installed only that role will be shown.USAGE¶
$ ansible-galaxy list [role_name]OPTIONS¶
-p ROLES_PATH, --roles-path=ROLES_PATHSEARCH¶
The search sub-command returns a filtered list of roles found on the remote server.USAGE¶
$ ansible-galaxy search [options] [searchterm1 searchterm2]OPTIONS¶
--galaxy-tags--platforms
--author
-c, --ignore-certs
-s, --server
INFO¶
The info sub-command shows detailed information for a specific role. Details returned about the role included information from the local copy as well as information from galaxy.ansible.com.USAGE¶
$ ansible-galaxy info [options] role_name[, version]OPTIONS¶
-p ROLES_PATH, --roles-path=ROLES_PATH-c, --ignore-certs
-s, --server
LOGIN¶
The login sub-command is used to authenticate with galaxy.ansible.com. Authentication is required to use the import, delete and setup commands. It will authenticate the user, retrieve a token from Galaxy, and store it in the user’s home directory.USAGE¶
$ ansible-galaxy login [options]The login sub-command prompts for a GitHub username and password. It does NOT send your password to Galaxy. It actually authenticates with GitHub and creates a personal access token. It then sends the personal access token to Galaxy, which in turn verifies that you are you and returns a Galaxy access token. After authentication completes the GitHub personal access token is destroyed.
If you do not wish to use your GitHub password, or if you have two-factor authentication enabled with GitHub, use the --github-token option to pass a personal access token that you create. Log into GitHub, go to Settings and click on Personal Access Token to create a token.
OPTIONS¶
-c, --ignore-certs-s, --server
--github-token
IMPORT¶
Import a role from GitHub to galaxy.ansible.com. Requires the user first authenticate with galaxy.ansible.com using the login subcommand.USAGE¶
$ ansible-galaxy import [options] github_user github_repoOPTIONS¶
-c, --ignore-certs-s, --server
--branch
DELETE¶
The delete sub-command will delete a role from galaxy.ansible.com. Requires the user first authenticate with galaxy.ansible.com using the login subcommand.USAGE¶
$ ansible-galaxy delete [options] github_user github_repoOPTIONS¶
-c, --ignore-certs-s, --server
SETUP¶
The setup sub-command creates an integration point for Travis CI, enabling galaxy.ansible.com to receive notifications from Travis on build completion. Requires the user first authenticate with galaxy.ansible.com using the login subcommand.USAGE¶
$ ansible-galaxy setup [options] source github_user github_repo secretOPTIONS¶
-c, --ignore-certs-s, --server
--list
--remove
AUTHOR¶
Ansible was originally written by Michael DeHaan. See the AUTHORS file for a complete list of contributors.COPYRIGHT¶
Copyright © 2014, Michael DeHaanAnsible is released under the terms of the GPLv3 License.
SEE ALSO¶
ansible(1), ansible-pull(1), ansible-doc(1), ansible-playbook(1), ansible-vault(1)Extensive documentation is available in the documentation site: http://docs.ansible.com. IRC and mailing list info can be found in file CONTRIBUTING.md, available in: https://github.com/ansible/ansible
01/16/2017 | Ansible 2.2.1.0 |