Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. GitHub Actions
  3. Deploy a Collection to Ansible Galaxy

Deploy a Collection to Ansible Galaxy

MITTypeScriptv3.0.0

A GitHub Action to build and publish Ansible Galaxy collections with version control and deployment automation.

GitHubGitHub
139 stars7 forks0 contributors

What is Deploy a Collection to Ansible Galaxy?

ansible_galaxy_collection is a GitHub Action designed to automate the deployment of Ansible Galaxy collections. It builds collections into archive files and publishes them to Ansible Galaxy, handling version injection and error reporting. The tool solves the problem of manual, error-prone collection releases by integrating directly into CI/CD pipelines.

Target Audience

Ansible collection maintainers and DevOps engineers who manage Ansible content and want to automate publishing to Ansible Galaxy via GitHub Actions.

Value Proposition

Developers choose this Action because it provides a standardized, reliable way to deploy collections with features like dynamic versioning and flexible build/publish controls, reducing deployment complexity and integration effort.

Overview

Deploy a Collection to Ansible Galaxy.

Use Cases

Best For

  • Automating Ansible Galaxy collection releases from GitHub repositories
  • Injecting dynamic version numbers into collections during CI/CD pipelines
  • Building collection archives without immediate publication for testing
  • Publishing pre-built collection archives to Ansible Galaxy
  • Managing collections stored in non-standard directory structures
  • Implementing error-handling and validation in collection deployment workflows

Not Ideal For

  • Teams using CI/CD platforms other than GitHub Actions (e.g., GitLab CI, Jenkins)
  • Projects requiring automated version incrementing without manual scripting (galaxy_version_increment is TBA)
  • Collections with custom archive naming or build processes that deviate from Ansible Galaxy's default format

Pros & Cons

Pros

Dynamic Version Injection

Allows injecting semver-compatible versions into galaxy.yml at deployment time, enabling version control from CI/CD triggers like tags or environment variables.

Flexible Build Control

Separate build and publish inputs let users create archives for testing without publishing or publish pre-built archives, adding deployment flexibility.

Custom Directory Support

The collection_dir input supports collections stored outside the project root, accommodating varied repository structures without restructuring.

Clear Error Handling

Provides specific exit codes (e.g., DeployFailed, ValidationFailed) with detailed logs, making it easier to debug failures in automated workflows.

Cons

Incomplete Version Automation

The README notes galaxy_version_increment is 'TBA', so automatic version bumps aren't supported, requiring external tools or manual updates.

GitHub-Only Dependency

As a GitHub Action, it locks users into GitHub's ecosystem, making it unsuitable for teams using other CI/CD platforms or self-hosted solutions.

Rigid Archive Assumptions

When build is false, it expects archives in the default Ansible Galaxy naming format, which may not align with custom build pipelines or legacy setups.

Frequently Asked Questions

Quick Stats

Stars139
Forks7
Contributors0
Open Issues4
Last commit2 days ago
CreatedSince 2019

Tags

#devops#infrastructure-as-code#ansible-galaxy#ci-cd#ansible#automation#github-actions

Included in

GitHub Actions27.6k
Auto-fetched 1 day ago

Related Projects

Executing remote ssh commandsExecuting remote ssh commands

GitHub Actions for executing remote ssh commands.

Stars6,225
Forks679
Last commit2 months ago
FTP Deploy Action, Deploys a GitHub project to a FTP server using GitHub actionsFTP Deploy Action, Deploys a GitHub project to a FTP server using GitHub actions

Deploys a GitHub project to a FTP server using GitHub actions

Stars5,269
Forks444
Last commit6 months ago
Copy files and artifacts via SSHCopy files and artifacts via SSH

GitHub Action that copy files and artifacts via SSH.

Stars1,579
Forks180
Last commit2 months ago
Publish a Python distribution package to PyPIPublish a Python distribution package to PyPI

The blessed :octocat: GitHub Action, for publishing your :package: distribution files to PyPI, the tokenless way: https://github.com/marketplace/actions/pypi-publish

Stars1,185
Forks123
Last commit3 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub