Skip to content
book

GitHub Action

Ansible Galaxy Role Importer

v1.1.0 Latest version

Ansible Galaxy Role Importer

book

Ansible Galaxy Role Importer

Github Action for import your role into Ansible Galaxy

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Ansible Galaxy Role Importer

uses: hspaans/ansible-galaxy-action@v1.1.0

Learn more about this action in hspaans/ansible-galaxy-action

Choose a version

ansible-galaxy-action

Usage

GitHub Action to import role into Ansible Galaxy.

Parameters

Following parameters can be used as step.with keys:

Name Type Default Description
api_key String Ansible Galaxy API-key

Example

---
name: Publish on Ansible Galaxy

on:
  push:
    tags:
      - "v*"
    branches:
      - master

jobs:
  publish:
    name: Publish on Ansible Galaxy
    runs-on: ubuntu-latest

    steps:
      - name: Checkout Code
        uses: actions/checkout@v2

      - name: Release Ansible Role to Galaxy
        uses: hspaans/ansible-galaxy-action@v1
        with:
          api_key: ${{ secrets.galaxy_api_key }}

Keep up-to-date with GitHub Dependabot

GitHub Actions has native support for Dependabot, to enable it on your GitHub repository all you need to do is add the .github/dependabot.yml file:

---
version: 2
updates:
  - package-ecosystem: github-actions
    directory: /
    schedule:
      interval: daily

Limitation

This action is only available for Linux virtual environments.