• This repository has been archived on 28/May/2024
  • Stars
    star
    249
  • Rank 162,987 (Top 4 %)
  • Language
  • License
    GNU General Publi...
  • Created almost 5 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Collections overview, how to request a namespace

Ansible Collections Overview

Overview

Warning: Subject to frequent updates
This is a "living document", expect it to change as we progress with the Collections work over the next few months.

Feedback

As with any project it's very important that we get feedback from users, contributors and maintainers. We recognize that the move to Collections is a big change in how Ansible is developed and delivered. Therefore you should expect that the devel branch may be broken on occasion.

See the Ansible Communication channels for a list of IRC channels and email lists you can use to join the discussion.

Where we've come from, and where we are going

To understand where we are going, it's often useful to remind ourselves of where we came from.

Previously: Ansible 2.9 and earlier

Classic Ansible

  • Single repository ansible/ansible.
  • Single package called ansible
  • ansible had major releases twice a year
  • New features go into the next major release - ie worst case you need to wait 6 months

Now: Ansible 2.10 and later

  • The ansible/ansible (ansible-base) repository only contains:
    • The core Ansible programs, ansible-{playbook,galaxy,doc,test,etc}
    • Some documentation
    • A tiny subset of modules and plugins to allow for a functioning controller
    • Together this will be known as ansible-base
  • The rest of the modules and plugins have been moved into various "collections"
    • Ansible Collections:
      • Can be released independently of ansible-base and Ansible, at whatever release cycle/cadence the collection maintainer prefers.
      • Will have their own repo (GitHub, GitLab, etc) with dedicated backlog, ie no more shared massive issue & PR backlog
      • Should still have CI testing and in many cases can be tested more thoroughly
  • The released package of Ansible 2.10 will pull in ansible-base and the various community collections that were previously a part of ansible/ansible

The ansible package (will contain a subset of collections) and depend on the new ansible-base package (the Ansible engine).

Terminology

Classic Ansible (CA)
What we think of as Ansible prior to 2020. The open source project and the deliverable. What you currently get (as of Ansible 2.9 and earlier versions) when you type pip install ansible. Was developed almost entirely within the ansible/ansible repository on GitHub.
Collection
A packaging format for bundling and distributing Ansible content: plugins, roles, modules. Can be released independent of other collections or ansible-base so features can be made available sooner to users. Installed via ansible-galaxy collection install <namespace.collection>.
ansible (the package)
A replacement software package (Python, deb, rpm, etc) which contains a select group of Collections. It contains the collections to ensure that Ansible 2.9 playbooks don't require any extra collections to be be installed. This list of what's included can be found at ansible-build-data. Will depend on the ansible-base package. Was previously referred to as ACD (Ansible Community Distribution).
ansible-base
New for 2.10. The codebase that is now contained in github.com/ansible/ansible for the Ansible 2.10 release. It contains a minimal amount of modules and plugins and allows other collections to be installed. Similar to Ansible 2.9 though without any content that has since moved into a collection. The devel branch of ansible/ansible is now ansible-base.

There will be an ansible-base package (RPM/Python/Deb package)with only the minimal set of modules and plugins).

Ansible Galaxy
An online hub for finding and sharing Ansible community content. Also, the command-line utility that lets users install individual Ansible Collections, ansible-galaxy install community.crypto. galaxy.ansible.com.
Fully Qualified Collection Name (FQCN)
The full definition of a module, plugin, or role hosted within a collection, in the form namespace.collection.content_name. Allows a Playbook to refer to a specific module or plugin from a specific source in an unambiguous manner, for example, community.grafana.grafana_dashboard. The FQCN is required when you want to specify the exact source of a module and multiple modules with the same name are available. Can always be identified in a playbook; ideally not necessary in most playbooks, but in cases in which users have multiple collections installed with similar content, the FQCN will always be the explicit and authoritative indicator of which collection to use for content. Example: cisco.ios.ios_config would be the FQCN, and the playbook would generally call "ios_config" when this is required.
Namespace
The first part of a Fully Qualified Collection Name, the namespace usually reflects a functional content category. Example: in cisco.ios.ios_config, β€œCisco” is the Namespace. Namespaces are reserved and distributed by Red Hat at Red Hat’s discretion. Many, but not all, namespaces will correspond with vendor names.
Collection name
In the second part of a Fully Qualified Collection Name, the collection name further divides the functional characteristics of the collection content and denotes ownership. For example, the cisco namespace might contain cisco.ios, cisco.ios_community, and cisco.ios_prc, containing content for managing ios network devices maintained by Cisco.
community.general (collection)
A special collection managed by the Ansible Community Team containing all the modules and plugins which shipped in Ansible 2.9 that don't have their own dedicated Collection. See community.general on Galaxy or it's GitHub repository .
community.network (collection)
Similar to community.general, though focusing on Network modules. See community.network on Galaxy or it's GitHub repository .
Repository
The location of the source code included in a collection. Contributors make suggestions, fix bugs, and add features through the repository. Collection owners can host repositories on GitHub, Gerrit, or any other source code repository platform they choose.

Although this document focuses on Community (upstream) content, there will be Product (downstream) equivalents of the above. Links to the Product documentation will be added once they are available.

Documentation

Work needed

Ansible 2.9 already contains basic support for Collections.

The majority of the ansible-base 2.10 release cycle is for:

  • Defining what the split of collections should be
  • Defining which modules and plugins go into these new collections
  • Defining ansible-base (ie which modules stay in ansible/ansible)
  • Updating test infrastructure
  • Testing the changes
  • Getting feedback from you

Timeline

  • See status.rst for dates of beta, RC, Release dates for ansible 2.10
  • See ROADMAP_2.10 for dates of beta, RC, Release dates for ansible-base 2.10

FAQ

Users of Ansible

Using Ansible Collections

Q: Once the next version of Ansible is released, will my playbooks still work

For users of the community version of ansible pip/apt-get install ansible will continue to give you a working install of Ansible including the three thousand plus modules that previously shipped with Ansible 2.9.

Q: I deploy Ansible directly from devel. Is that still advised?

We recognize that many users install Ansible directly from devel, and generally we do our best to keep the devel branch stable. These changes, however, will have a very large short-term impact, and we cannot guarantee that devel will be as stable as it has been in the past through this migration process.

These changes, however, will have both a temporary and permanent impact.

  • Temporarily
    • These changes are large and invasive so there may be bugs which break many things.
    • We cannot guarantee that devel will be as stable as it has been in the past during this transition period.
  • Permanent
    • Users of devel will need to get both ansible-base (the package with contains ansible-playbook) and the ansible collections that their playbooks rely on. The collections will reside in multiple other git repositories (or can be installed from galaxy).
    • If your workflow presently updates your checkout of the ansible devel branch, you'll need to change it to also retrieve the collections you need otherwise your playbooks will fail,

Q: I'd like to consume the development stream of Ansible during this process. How do I do that?

You can pip install ansible-base by doing:

python -m pip install --user https://github.com/ansible/ansible/archive/devel.tar.gz

Individual collections can be installed by doing:

ansible-galaxy collection install NAMESPACE.COLLECTION

Q: What exactly is ansible-base for and what does it contain

Ansible-base is the name of the code and package for what github.com/ansible/ansible has become now that most of the content has been removed.

use-cases for ansible-base
  • ansible[|-playbook|-galaxy|-pull|-doc|-test] --help
  • Being able to install content from Galaxy or Automation Hub
    • ansible-galaxy collection ...
    • Setup Networking
    • Setup Proxy
  • Being able to install supported content via packages
    • ie RHEL users will not use ansible-galaxy collection install ..., they want RPMs
    • Ability to setup and use package repos
    • Ability to work online or offline
  • Include things that are "hardcoded" into Ansible
    • eg stat is used to handle any file information internally
    • include_tasks is hardcoded as the implementation is inside the engine, same with add_host, group_by, debug and others, async_wrapp, async-poll, assert/fail are 'parts of the language'
  • Development
    • Ability to run ansible-test sanity,units,integration against the Ansible code base
  • Parts of the Windows codebase that can't currently be removed from ansible-base.

Bugs in ansible-base should be reported via ansible/ansible issues.

Contributors to Ansible

Developing Collections

Ansible Collections Requirements

Q: I'd like to submit a new module or plugin to Ansible. How shall I proceed?

If you're a vendor/partner and you're writing Ansible content to interact with your software, we recommend writing your own collection. This will allow you to pursue certification against the Ansible Automation Platform. For more info on certification, read the Partners Page.

If you want to submit your module to an existing collection, you'll want to coordinate with the maintainers of those collections and follow their guidelines.

As of today ansible-core (github.com/ansible/ansible) will no longer accept new modules or plugins.

Q: I'd like to submit a pull request to an existing Ansible module. How will I know where this module will live?

We will have a mapping of old modules to their new homes. Should you submit a PR to the wrong repository, we will close it and point you to the correct repository.

Q: I have existing pull requests to existing modules that will become part of the Ansible Community Collection. What will happen to those?

Pull requests not merged before the freeze, will need to be recreated in the corresponding new Collection Repo. We will have a tool to help move PRs from one repo to another.

Maintainers of Ansible content

Q: What happens if I don't move my content into a collection?

Content that doesn't end up in its own Collection will end up being automatically migrated to community.general during the devel freeze window.

Q: Why would I want a dedicated collection?

The benefits of claiming content are the following:

  • Source content is housed in a GitHub organization/repository of your choosing
  • Source content is subject to your own CI processes, decisions, and testing
  • Your own dedicated Issue and PR backlog
  • Ability to use more GitHub functionality, such as direct assignments, reviews, milestones and Project Boards

Q: What will versioning and deprecation look like for Collections

  • In ansible/ansible:
    • There is a single version number which is over everything shipped in Ansible
    • Doesn't use semver, uses X.Y (ie 2.9) as the major number
    • Deprecations are done over 4 versions (~ 2 years)
  • In Collections

Details around versioning and deprecation policy are still being worked on, we will have a proposal up shortly

Q: What should I do to move plugins across collections during migration?

See Migrating content to a different collection .

Q: How can I fix bugs in Ansible 2.9?

Please note that Ansible 2.9 no longer receives bugfixes. Only security issues can be fixed, and eventually it will be end of life with no more fixes accepted. See ansible-core release cycle for whether 2.9 is still accepting security fixes or not.

The process for fixing a security issue is as follows:

  1. PR for bug fix made against the Collection
  2. PR gets merged into Collection
  3. Raise PR directly against ansible/ansible:stable-2.9 (ie not a backport) including a changelogs/fragments/ file

The changes in the PR against ansible/ansible:stable-2.9 should be as close as possible to the changes in the collection original PR, and you should add a reference to the collection PR in the ansible/ansible PR.

More Repositories

1

community.general

Ansible Community General Collection
Python
821
star
2

community.vmware

Ansible Collection for VMware
Python
348
star
3

community.zabbix

Zabbix Ansible modules
Python
320
star
4

amazon.aws

Ansible Collection for Amazon AWS
Python
304
star
5

cisco.ios

Ansible Network Collection for Cisco IOS
Python
277
star
6

community.kubernetes

Kubernetes Collection for Ansible
Makefile
264
star
7

ansible.windows

Windows core collection for Ansible
PowerShell
246
star
8

azure

Development area for Azure Collections
Python
246
star
9

kubernetes.core

The collection includes a variety of Ansible content to help automate the management of applications in Kubernetes and OpenShift clusters, as well as the provisioning and maintenance of clusters themselves.
Python
215
star
10

community.windows

Windows community collection for Ansible
PowerShell
200
star
11

community.docker

Community Docker Collection for Ansible: modules and plugins for working with Docker
Python
200
star
12

community.aws

Ansible Collection for Community AWS
Python
187
star
13

ansible.posix

Ansible Collection for Posix
Python
152
star
14

community.digitalocean

This Ansible collection contains modules for assisting in the automation of the DigitalOcean cloud.
Python
141
star
15

ansible.netcommon

Ansible Network Collection for Common Code
Python
141
star
16

vmware.vmware_rest

Ansible Collection for VMWare (REST modules)
Python
131
star
17

community.grafana

Grafana Collection for Ansible
Python
129
star
18

community.network

Ansible Community Network Collection
Python
124
star
19

cisco.nxos

Ansible Network Collection for Cisco NXOS
Python
115
star
20

community.postgresql

Manage PostgreSQL with Ansible
Python
108
star
21

community.mongodb

MongoDB Ansible Collection
Python
106
star
22

hetzner.hcloud

A collection to manage resources on Hetzner Cloud
Python
105
star
23

community.mysql

MySQL Ansible Collection
Python
99
star
24

google.cloud

GCP Ansible Collection https://galaxy.ansible.com/google/cloud
Python
99
star
25

community.routeros

Ansible modules for managing MikroTik RouterOS instances.
Python
97
star
26

community.crypto

The community.crypto collection for Ansible.
Python
96
star
27

collection_template

A GitHub Template repo to use as the basis for future repos
91
star
28

arista.eos

Ansible Network Collection for Arista EOS
Python
82
star
29

junipernetworks.junos

Ansible Network Collection for Juniper JunOS
Python
80
star
30

ibm_zos_core

Red Hat Ansible Certified Content for IBM Z
Python
77
star
31

community.sops

Simple and flexible tool for managing secrets
Python
76
star
32

ansible.utils

A collection of ansible utilities for the content creator.
Python
73
star
33

servicenow.itsm

Ansible Collection for ServiceNow ITSM
Python
71
star
34

community.hashi_vault

Ansible collection for managing and working with HashiCorp Vault.
Python
69
star
35

cloud.terraform

The collection automates the management and provisioning of infrastructure as code (IaC) using the Terraform CLI tool within Ansible playbooks and Execution Environment runtimes.
Python
67
star
36

cisco.iosxr

Ansible Network Collection for Cisco IOSXR
Python
65
star
37

community.libvirt

Manage libvirt with Ansible
Python
61
star
38

netapp.ontap

Ansible collection to support NetApp ONTAP configuration.
Python
56
star
39

netapp

Development area for Netapp collections
Python
49
star
40

cisco.asa

Ansible Security Collection for Cisco ASA
Python
49
star
41

dellemc.enterprise_sonic

Ansible Network Collection for Enterprise SONiC Distribution by Dell Technologies
Python
42
star
42

microsoft.ad

Ansible collection for Active Directory management
Python
40
star
43

dellemc.os10

Jinja
37
star
44

community.rabbitmq

Manage RabbitMQ with Ansible
Python
31
star
45

community.dns

Ansible modules and plugins for working with DNS
Python
27
star
46

community.cassandra

Cassandra Ansible Collection
Python
25
star
47

ibm.qradar

IBM QRadar Ansible Collection
Python
24
star
48

news-for-maintainers

Announcements of changes impacting collection contributors and maintainers
24
star
49

community.elastic

Python
24
star
50

ibm.spectrum_virtualize

IBM Spectrum Virtualize
21
star
51

community.proxysql

ProxySQL Ansible Collection
Python
21
star
52

community.healthchecksio

This Ansible collection contains modules for assisting in the automation of the Healthchecks.io monitoring service.
Python
18
star
53

community.hrobot

Hetzner Robot Collection
Python
17
star
54

community.cip

Ansible Collection to automate Programmable Logic Controllers over Common Industrial Protocol (CIP)
Python
17
star
55

ansible.scm

An ansible collection for prescriptive retrieval and publish using git
Python
16
star
56

ansible.network

Ansible Network Collection for network and IP utilities that are not specific to any platform or OS.
16
star
57

openvswitch.openvswitch

Ansible Network Collection for Open vSwitch
Python
15
star
58

ibm_zos_cics

The IBM z/OS CICS collection supports management of CICS resources and definitions in Ansible via the CMCI REST API provided by CICS.
Python
15
star
59

cloud.common

Common files for the Cloud collections
Python
14
star
60

frr.frr

Ansible Collection for Free Range Routing (FRR)
Python
13
star
61

amazon.cloud

Ansible Collection for Amazon AWS' Cloud Control API
Python
12
star
62

splunk.es

Ansible Collection for Splunk Enterprise
Python
11
star
63

community.internal_test_tools

Internal only, not for end users
Python
11
star
64

ibm_zos_ims

IBM z/OS IMS Collection
Python
11
star
65

mellanox.onyx

onyx
Python
10
star
66

ansible-inclusion

Requests to include new collections into the ansible package
10
star
67

community.yang

Ansible Community Collection to support Yang in network devices.
Python
10
star
68

ansible.snmp

Python
10
star
69

dellemc.os9

Jinja
9
star
70

vmware_rest_code_generator

Tooling ued to generate the vmware.vmware_rest collection
Python
9
star
71

community.ciscosmb

Ansible Galaxy module for Cisco SMB switches - SG300, SG500, SG350, SG550
Python
8
star
72

dellemc.os6

Python
8
star
73

community.molecule

Ansible community.molecule is a very small collection that hosts filters used by molecule playbooks.
Python
8
star
74

splunk.enterprise_security

Ansible Collection for Splunk Enterprise
7
star
75

community.sonic

Ansible Galaxy community module for SONiC NOS
Python
7
star
76

community.kubevirt

KubeVirt Collection of Ansible.
Python
7
star
77

vmware.vmware

Ansible VMWare Collection
Python
7
star
78

ansible.security

Ansible Security Collection for security and are not specific to any security vendor.
7
star
79

pravic

An experimental project intended to explore how Ansible could be used to manage cloud-based resources in a more declarative way.
Python
7
star
80

community.google

Python
6
star
81

amazon_cloud_code_generator

Tooling used to generate the amazon.cloud collection
Python
6
star
82

community.sap

Python
6
star
83

logicmonitor

Repo to house LogicMonitor Collection
Python
6
star
84

ansible.yang

Ansible Supported Collection to support YANG in network devices.
Python
5
star
85

community.fqcn_migration

5
star
86

community.clickhouse

Ansible Community ClickHouse Collection
Python
5
star
87

cloud.roles

Collection of roles to help get started using Ansible with public clouds
4
star
88

trendmicro.deepsec

Ansible Collection for managing TrendMicro DeepSecurity Endpoint Security solutions.
Python
4
star
89

ibm.cloud

Code and relative documentation for the IBM Cloud Collection
Python
4
star
90

community.vagrant

community.vagrant collection (to adopt the module from molecule-vagrant)
4
star
91

community.azure

Manage Azure with Ansible
4
star
92

netapp.storagegrid

Ansible collection to support NetApp StorageGrid configuration.
Python
3
star
93

ibm.ds8000

IBM DS8000
Python
3
star
94

netapp.aws

Ansible collection to support NetApp CVS configuration in AWS.
Python
3
star
95

checkpoint

Ansible Security Collection for Check Point devices
3
star
96

skydive

Ansible Collection for Skydive network / protocols analyzer
Python
3
star
97

Datadog

Datadog Collection
Jinja
3
star
98

consoledot.edgemanagement

PoC Ansible Collection for Red Hat Edge Fleet Manager
Python
3
star
99

netapp.cloudmanager

Ansible collection to support NetApp Cloud Manager configuration, including CVO deployments.
Python
3
star
100

pureport

An Ansible Collection for interacting with the Pureport Fabric ReST API
Python
3
star