Once you have created your Ansible repository, you can get helpful code snippets from the UI to resolve collections and roles using the Ansible client.
You can publish ansible collections, and install ansible collections and roles using any one of the following methods:
Configuration Files
For collections,
Server in ansible.cfg
fileFor roles,
Server in ansible.cfg
and.netrc
files
Server Explicit
Pass server and token details from the CLI.
Configure Ansible Client
To configure ansible client to work with collections and roles using configuration files, refer to the following sections:
For Collections
Task | Description | For more information, see... |
---|---|---|
Configure Ansible Client to Work with Collections using | Describes the steps to configure ansible client to work with collections using | Configure Ansible Client to Work with Collections using ansible.cfg File |
For Roles
Task | Description | For more information, see... |
---|---|---|
Configure Ansible Client to Work with Roles using | Describes the steps to configure ansible client to work with roles using | Configure Ansible Client to Work with Roles using .netrc File |
Server Explicit
To publish collections, and install collections and roles server-explicitly (without configuration files), refer to the following sections:
For Collections
Task | Description | For more information, see... |
---|---|---|
Publish Ansible Collections via Ansible CLI without | Describes the steps to publish ansible collections via ansible CLI without | Publish Ansible Collections via Ansible CLI without ansible.cfg File - Server Explicit |
Install Ansible Collections without | Describes the steps to install ansible collections via ansible CLI without |
For Roles
Task | Description | For more information, see... |
---|---|---|
Install Ansible Roles without | Describes the steps to install ansible roles via ansible CLI without |