This Ansible collection allows for easy interaction with an Ansible Automation Hub server via Ansible playbooks. It provides modules and plugins to manage collections, users, groups, and other Automation Hub resources, enabling automation administrators to configure and maintain their Hub instances efficiently.
Before using this collection, install it from Automation Hub with the ansible-galaxy command-line tool:
ansible-galaxy collection install ansible.hubYou can also include it in a requirements.yml file and install it with ansible-galaxy collection install -r requirements.yml:
---
collections:
- name: ansible.hubTo upgrade to the latest available version:
ansible-galaxy collection install ansible.hub --upgradeTo install a specific version:
ansible-galaxy collection install ansible.hub:==1.0.1See Managing automation content for more details.
Automate the upload, approval, and management of collections in your Automation Hub:
- name: Create namespace
ansible.hub.ah_namespace:
name: "organization"
description: "Collections for my organization"
state: present
- name: Upload collection to Hub
ansible.hub.ah_collection:
namespace: "organization"
name: "collection"
path: "/path/to/organization-collection.tar.gz"
state: presentManage users and groups across your Automation Hub instance:
- name: Create group
ansible.hub.ah_group:
name: "developers"
state: presentConfigure and manage namespaces for collection organization:
- name: Create namespace
ansible.hub.ah_namespace:
name: "my_organization"
description: "Collections for my organization"
state: presentManage API tokens for automation workflows:
- name: Create API token
ansible.hub.ah_token:
ah_username: "admin"
ah_password: "admin"
state: present
register: ah_token
no_log: falseThe content of this collection is made by people like you, a community of individuals collaborating on making the world better through developing automation software.
We are actively accepting new contributors and all types of contributions are very welcome.
Don't know how to start? Refer to the Ansible community guide!
Want to submit code changes? Take a look at the Quick-start development guide.
We also use the following guidelines:
The current maintainers are listed in the MAINTAINERS file. If you have questions or need help, feel free to mention them in the proposals.
This collection is maintained by the Red Hat Ansible team.
As Red Hat Ansible Certified Content, this collection is entitled to support through the Ansible Automation Platform (AAP) using the Create issue button on the top right corner. If a support case cannot be opened with Red Hat and the collection has been obtained either from Galaxy or GitHub, there may community help available on the Ansible Forum.
See the changelog for release notes and version history.
- Ansible Automation Hub Documentation
- Ansible user guide
- Ansible developer guide
- Ansible collections requirements
- Ansible community Code of Conduct
- The Bullhorn (the Ansible contributor newsletter)
- Important announcements for maintainers
GNU General Public License v3.0 or later.
See LICENSE to see the full text.