Categories

Category cover

Automation
155 posts

Category cover

Learning paths
119 posts

Category cover

CISO
22 posts

Category cover

Security
20 posts

Category cover

Notes
19 posts

Category cover

Personal Security
18 posts

Category cover

Infrastructure
12 posts

Category cover

OT/ICS
5 posts

Category cover

Books
3 posts

Category cover

UNetLab
3 posts

Category cover

Write-up
3 posts

Category cover

OSInt
2 posts

Category cover

My life
1 posts

Ansible Galaxy

Andrea Dainese
March 16, 2025
Post cover

Ansible provides Galaxy, which allows managing packages containing roles and collections. Roles and collections can be directly referenced b

Ansible provides Galaxy, which allows managing packages containing roles and collections. Roles and collections can be directly referenced by Ansible playbooks. Galaxy enables the use of packages published directly on the public portal  but also allows managing private repositories.

In this post, we will focus on the official Galaxy portal . The Galaxy portal is fully integrated with GitHub, where various repositories available as collections in Galaxy are stored.

The structure of a collection is quite rigid, and to create one, it is best to rely on ansible-creator, which we can install using pip:

pip install ansible-creator

We then create a collection using the format github_nickname.collection_name. In my case, I used dainok.courses :

ansible-creator init collection dainok.courses

This command creates a complete but rather complex structure:

Continue reading the post on Patreon .