-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
46 lines (45 loc) · 1.46 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Check Ansible Fedora latest
description: Check ansible role or playbook with the fedora:latest docker container
author: L3D <[email protected]>
inputs:
targets:
description: |
Paths to the ansible role or playbook you want to be tested.
For example './', 'roles/my_role/' or 'site.yml'
required: true
group:
description: |
When testing playbooks you have to tell ansible
the group you that we write in our hosts file.
For example 'servers' or what group you are using
in the playbook you want to test!
required: false
hosts:
description: |
When testing playbooks you have to give us
one example host we should use to test your playbook.
For example 'server1.example.com'.
We only spawn one docker container that mean
we can only test one host at the time. Sorry
required: false
requirements:
description: |
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
-> e.g. 'do1jlr.ansible_version'
or your requiements.yml file.
-> e.g. 'requirements.yml'
required: false
runs:
using: docker
image: Dockerfile
env:
TARGETS: ${{ inputs.targets }}
HOSTS: ${{ inputs.hosts }}
GROUP: ${{ inputs.group }}
REQUIREMENTS: ${{ inputs.requirements }}
branding:
icon: 'aperture'
color: 'green'