This repository was archived by the owner on Apr 25, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
59 lines (58 loc) · 1.89 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
47
48
49
50
51
52
53
54
55
56
57
58
59
---
name: Check Ansible Ubuntu trusty
description: Checked ansible role or playbook with the ubuntu:trusty docker container but is now archived since ubuntu trusty is EOL.
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
tags:
description: |
If you are using tags and you want to pick which tags
you are going to check you can optionally define them here.
required: false
skiptags:
desctiption:
If you are using tags and you want explicit skip some of them,
you can define them here.
required: false
runs:
using: docker
image: Dockerfile
env:
TARGETS: ${{ inputs.targets }}
HOSTS: ${{ inputs.hosts }}
GROUP: ${{ inputs.group }}
REQUIREMENTS: ${{ inputs.requirements }}
TAGS: ${{ inputs.tags }}
SKIPTAGS: $(( input.skiptags }}
branding:
icon: 'check-circle'
color: 'green'