Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/systemli/github-ansible-workflow
https://github.com/systemli/github-ansible-workflow
ansible-role github-actions molecule
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/systemli/github-ansible-workflow
- Owner: systemli
- License: gpl-3.0
- Created: 2022-06-19T13:05:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-05T08:27:48.000Z (11 months ago)
- Last Synced: 2024-11-10T02:38:55.528Z (2 months ago)
- Topics: ansible-role, github-actions, molecule
- Homepage:
- Size: 58.6 KB
- Stars: 3
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Github Workflows for Ansible Roles
[![Integration](https://github.com/systemli/github-ansible-workflow/actions/workflows/integration.yml/badge.svg)](https://github.com/systemli/github-ansible-workflow/actions/workflows/integration.yml)
## Continuous Integration (Molecule)
### Configuration
| Variable | Type | Default | Description |
| ---------------------- | ------- | ------------------------------------------------------------------- | -------------------------------------------------- |
| distros | string | '[ "debian12", "debian11" ]' | List of distributions to test against the Role |
| python-dependencies | string | [see workflow](.github/workflows/ansible-integration-workflow.yaml) | Default pip dependencies for molecule |
| molecule-config | string | [see workflow](.github/workflows/ansible-integration-workflow.yaml) | Configuration for molecule |
| disable-apparmor-mysql | boolean | false | Disable AppArmor MySQL Profile for the Job Runner |### Usage
Create a workflow, e.g. `.github/workflows/integration.yaml`
```yaml
---
name: Integrationon:
push:
branches:
- main
pull_request:jobs:
integration:
name: Integration
uses: systemli/github-ansible-workflow/.github/workflows/[email protected]
with:
distros: '[ "debian12", "debian11", "ubuntu2204", "ubuntu2004", "ubuntu1804" ]'
```## Ansible Galaxy
### Configuration
| Variable | Type | Default | Description |
| ------------ | ------ | ------- | ------------------------- |
| galaxy-token | secret | | Secret for Ansible Galaxy |### Usage
Create a workflow, e.g. `.github/workflows/galaxy.yaml`
```yaml
---
name: Ansible Galaxyon:
push:
branches:
- main
release:jobs:
galaxy:
name: Ansible Galaxy
uses: systemli/github-ansible-workflow/.github/workflows/ansible-galaxy-workflow.yaml@main
secrets:
galaxy-token: ${{ secrets.galaxy_api_key }}
```