Skip to content

Build and publish an Ansible Collection to Ansible Galaxy.

License

Notifications You must be signed in to change notification settings

arillso/action.ansible.collection

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Action: Ansible Collection

Build and publish an Ansible Collection to Ansible Galaxy.

Inputs

api_key

api_key

Required: Ansible Galaxy API key.

This should be stored in a Secret on GitHub. See Creating and Using Secrets Encrypted Variables.

collection_dir

Default: ./

The directory in which the Ansible Collection is stored. This defaults to the project root.

Only change this if your Collection is not stored in your project root.

galaxy_version

Semver-compatible string: 1, 1.1, 1.1.1, 1.1.1-alpha

Dynamically inject a semver-compatible version into your galaxy.yml file.

Example Usage

- name: Build and Deploy Collection
  uses: arillso/action.ansible.collection@master
  with:
    api_key: '3fe6ff42edm793ddei5'

Inspired

License

This project is under the MIT License. See the LICENSE file for the full license text.

Copyright

(c) 2022, Arillso