Skip to content

ome/action-ansible-galaxy-publish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Ansible Galaxy Publish GitHub action

A GitHub action to push an Ansible role to Ansible Galaxy.

This action requires Ansible 2.9+ to be pre-installed. Ansible is included by default in the current GitHub workflow Ubuntu images, which means this action should run quickly since it does not need to install anything.

Inputs

galaxy-api-key

The Ansible Galaxy API key, required.

galaxy-version

The version to push to Ansible galaxy, required. e.g. 0.4.0

role-name

The name of the role. The value in ``meta/main.yml` is not taken into account when using the url

Example usage

Here is a default configuration. Note it is not necessary to checkout the repository 😀, only the repository owner and name are required and these are obtained from the environment.

---
on:
  push:
    tags:

jobs:
  build:
    runs-on: ubuntu-22.04
    steps:
      - name: galaxy
        uses: ome/action-ansible-galaxy-publish@main
        with:
          galaxy-api-key: ${{ secrets.GALAXY_API_KEY }}
          galaxy-version: ${{  github.ref_name }}
          role-name: ${{ steps.role-name.outputs.rolename }}

The role name is usually read from the ``meta/main.yml` file.

About

A GitHub action to push an Ansible role to Ansible Galaxy

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published