galaxy.ansible.com
The official community hub for sharing Ansible content — roles, collections, and plugins authored by the community and vendors.
Collections
The modern content format. Bundles modules, plugins, roles, and playbooks into a single distributable namespace (e.g. community.general).
Roles
The original shareable unit. A structured directory of tasks, handlers, templates, and defaults for a single automation concern.
Automation Hub
Red Hat's certified content hub (console.redhat.com). Private Automation Hub lets organizations host their own internal Galaxy server.
Namespaces
Content is addressed as namespace.collection (e.g. amazon.aws). Namespaces are claimed by authors and organizations on Galaxy.
Versioning
Collections use semantic versioning. Pin versions in requirements.yml for reproducible installs across teams and CI pipelines.
ansible-galaxy collection install community.general
Install a collection from Galaxy
ansible-galaxy collection install amazon.aws:==7.3.0
Install a specific collection version
ansible-galaxy collection install -r requirements.yml
Install all collections listed in requirements file
ansible-galaxy collection install -p ./collections community.docker
Install to a specific local path
ansible-galaxy collection list
List all installed collections and their versions
ansible-galaxy collection verify community.general
Verify installed collection against Galaxy checksum
ansible-galaxy install geerlingguy.nginx
Install a role from Galaxy
ansible-galaxy install geerlingguy.nginx,v3.2.0
Install a specific role version
ansible-galaxy install -r requirements.yml
Install all roles listed in requirements file
ansible-galaxy install -r requirements.yml --roles-path roles/
Install roles to a specific directory
ansible-galaxy role list
List all installed roles
ansible-galaxy role remove geerlingguy.nginx
Remove an installed role
ansible-galaxy role init myrole
Scaffold a new role directory structure
ansible-galaxy collection init myns.mycol
Scaffold a new collection skeleton
ansible-galaxy collection build
Build a .tar.gz collection artifact for publishing
ansible-galaxy collection publish myns-mycol-1.0.0.tar.gz
Publish collection artifact to Galaxy
community.general
ansible-galaxy collection install community.general
The largest community collection — hundreds of modules spanning cloud providers, databases, notification services, packaging, and system utilities not included in ansible-core.
community.general.telegram, .slack, .homebrew, .snap, .lvol ...
ansible.posix
ansible-galaxy collection install ansible.posix
POSIX-platform modules maintained by the Ansible team. Covers firewalld, selinux, mount, synchronize, sysctl, authorized_key, and at.
ansible.posix.firewalld, .selinux, .mount, .synchronize
community.docker
ansible-galaxy collection install community.docker
Manage Docker containers, images, networks, volumes, Compose stacks, and Docker Swarm. Essential for container lifecycle automation.
community.docker.docker_container, .docker_image, .docker_compose_v2
amazon.aws
ansible-galaxy collection install amazon.aws
Official AWS collection. Manage EC2, S3, RDS, IAM, VPC, Route53, CloudFormation, Lambda, and dozens of other AWS services.
amazon.aws.ec2_instance, .s3_object, .rds_instance, .iam_role
google.cloud
ansible-galaxy collection install google.cloud
Official GCP collection. Provision Compute Engine instances, GKE clusters, Cloud SQL, Cloud Storage, and other Google Cloud resources.
google.cloud.gcp_compute_instance, .gcp_sql_database, .gcp_storage_bucket
azure.azcollection
ansible-galaxy collection install azure.azcollection
Official Azure collection from Microsoft. Manage VMs, AKS clusters, App Service, Blob storage, Key Vault, and Azure networking resources.
azure.azcollection.azure_rm_virtualmachine, .azure_rm_aks, .azure_rm_storageaccount
kubernetes.core
ansible-galaxy collection install kubernetes.core
Manage Kubernetes clusters — apply manifests, manage Helm charts, interact with the API server, and handle resource lifecycle declaratively.
kubernetes.core.k8s, .k8s_info, .helm, .helm_repository
community.mysql
ansible-galaxy collection install community.mysql
Create and manage MySQL/MariaDB databases, users, privileges, and replication. Handles connection via unix socket or TCP.
community.mysql.mysql_db, .mysql_user, .mysql_replication, .mysql_query
community.postgresql
ansible-galaxy collection install community.postgresql
Full lifecycle management of PostgreSQL databases, users, schemas, extensions, privileges, and pg_hba.conf entries.
community.postgresql.postgresql_db, .postgresql_user, .postgresql_ext
community.crypto
ansible-galaxy collection install community.crypto
Generate and manage TLS certificates, private keys, CSRs, ACME (Let's Encrypt) certificates, and OpenSSL parameters.
community.crypto.openssl_certificate, .acme_certificate, .openssl_privatekey
geerlingguy.nginx
ansible-galaxy install geerlingguy.nginx
Install and configure nginx on RHEL, Debian, and FreeBSD. Supports vhosts, SSL, custom config fragments, and upstream proxy blocks.
role: geerlingguy.nginx
vars: { nginx_vhosts: [...] }
geerlingguy.docker
ansible-galaxy install geerlingguy.docker
Install Docker CE on major Linux distros. Manages Docker daemon options, edition selection (ce/ee), users added to the docker group, and Compose plugin.
role: geerlingguy.docker
vars: { docker_users: [deploy] }
geerlingguy.nodejs
ansible-galaxy install geerlingguy.nodejs
Install Node.js via NodeSource or nvm. Supports any major version, global npm packages, and yarn installation across RHEL and Debian families.
role: geerlingguy.nodejs
vars: { nodejs_version: "20.x" }
geerlingguy.mysql
ansible-galaxy install geerlingguy.mysql
Install and configure MySQL or MariaDB. Manages root password, databases, users, replication, slow query log, and my.cnf tuning variables.
role: geerlingguy.mysql
vars: { mysql_databases: [...] }
geerlingguy.java
ansible-galaxy install geerlingguy.java
Install OpenJDK or Oracle JDK across Linux distros. Supports multiple JDK versions, JAVA_HOME configuration, and alternative JDK selection.
role: geerlingguy.java
vars: { java_packages: [openjdk-17-jdk] }
geerlingguy.redis
ansible-galaxy install geerlingguy.redis
Install and configure Redis. Manages redis.conf settings, maxmemory policy, bind address, requirepass, and systemd service state.
role: geerlingguy.redis
vars: { redis_maxmemory: "512mb" }