Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/roles-ansible/check-ansible-ubuntu-eoan-action
Github Action to check your ansible role or playbook with the ubuntu:eoan docker image
https://github.com/roles-ansible/check-ansible-ubuntu-eoan-action
ansible check-ansible github-actions ubuntu
Last synced: about 1 month ago
JSON representation
Github Action to check your ansible role or playbook with the ubuntu:eoan docker image
- Host: GitHub
- URL: https://github.com/roles-ansible/check-ansible-ubuntu-eoan-action
- Owner: roles-ansible
- License: mit
- Created: 2020-02-24T11:48:56.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-07T21:17:40.000Z (about 4 years ago)
- Last Synced: 2023-05-17T12:16:26.712Z (over 1 year ago)
- Topics: ansible, check-ansible, github-actions, ubuntu
- Language: Shell
- Homepage: https://github.com/marketplace/actions/check-ansible-ubuntu-eoan
- Size: 96.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[![Github Marketplace](https://raw.githubusercontent.com/roles-ansible/check-ansible-ubuntu-eoan-action/master/.github/marketplace.svg?sanitize=true)](https://github.com/marketplace/actions/check-ansible-ubuntu-eoan)
[![MIT License](https://raw.githubusercontent.com/roles-ansible/check-ansible-ubuntu-eoan-action/master/.github/license.svg?sanitize=true)](https://github.com/roles-ansible/check-ansible-ubuntu-eoan-action/blob/master/LICENSE)Check Ansible Ubuntu eoan
=======================
This action allows you to test your ansible role or your playbook in a Docker Container with ``ubuntu:eoan``.| :warning: Ubuntu Eoan reached it [END OF SUPPORT](https://fridge.ubuntu.com/2020/07/17/ubuntu-19-10-eoan-ermine-end-of-life-reached-on-july-17-2020/). :warning: |
|---|
| Since the Ubunbtu version used here is now end of life, this github action will also no longer be actively maintained.
Of course we will continue to review your pull requests here. But we are currently not trying to fix known issues like the docker image used here not being fully available anymore.|## Usage
To use the action simply create an ``ansible-ubuntu-eoan.yml`` *(or choose custom ``*.yml`` name)* in the ``.github/workflows/`` directory.For example:
```yaml
name: Ansible check ubuntu:eoan # feel free to pick your own nameon: [push, pull_request]
jobs:
build:runs-on: ubuntu-latest
steps:
# Important: This sets up your GITHUB_WORKSPACE environment variable
- uses: actions/checkout@v2- name: ansible check with ubuntu:eoan
# replace "master" with any valid ref
uses: roles-ansible/check-ansible-ubuntu-eoan-action@master
with:
targets: "./"
# [required]
# Paths to your ansible role or playboox.yml you want to test
# Some Examples:
# targets: "role/my_role/"
# targets: "site.yml"
#
# group: ""
# [optional]
# When testing playbooks you have to tell ansible
# the group you that we write in our hosts file.
# example:
# group: 'servers'
# hosts: ""
# [optional]
# When testing playbooks you have to give one example
# host this action should use to test your playbook.
# > We only spawn one docker container that mean
# > we can only test one host at the time. Sorry
# some examples:
# hosts: 'localhost'
# hosts: 'srv01.example.com'
# requirements
# [optional]
# When testing playbooks and you are using ansible galaxy,
# you may be interested in installing your requirements
# from ansible galaxy.
# To do this please provide us either the role name directly
# requirements: 'do1jlr.ansible_version'
# or your requiements.yml file.
# requirements: 'requirements.yml'
```Alternatively, you can run the ansible check only on certain branches:
```yaml
on:
push:
branches:
- stable
- master
- release/v*
```or on various [events](https://help.github.com/en/articles/events-that-trigger-workflows)
Contributing
-------------
If you are missing a feature or see a bug. Please report it. Or - if you like - open a pull-request.License
----------
The Dockerfile and associated scripts and documentation in this project are released under the [MIT License](LICENSE).Credits
--------------
The initial GitHub action has been created by [Stefan Stölzle](/stoe) at
[stoe/actions](https://github.com/stoe/actions).
It was used by ansible for lint checks at [ansible/ansible-lint-action](https://github.com/ansible/ansible-lint-action.git)
It was modified from [L3D](github.com/do1jlr) to check ansible roles and playbooks.