-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathaction.yml
72 lines (66 loc) · 3.47 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
60
61
62
63
64
65
66
67
68
69
70
71
72
---
name: Ansible Molecule
description: Run Ansible Molecule
author: Evgenii Vasilenko <[email protected]>
branding:
icon: upload
color: green
inputs:
molecule_options:
description: |
Options:
--debug / --no-debug Enable or disable debug mode. Default is disabled.
-v, --verbose Increase Ansible verbosity level. Default is 0.
-c, --base-config TEXT Path to a base config (can be specified multiple times). If provided, Molecule will first load and deep merge the configurations in the specified
order, and deep merge each scenario's molecule.yml on top. By default Molecule is looking for '.config/molecule/config.yml' in current VCS repository
and if not found it will look in user home. (None).
-e, --env-file TEXT The file to read variables from when rendering molecule.yml. (.env.yml)
--version
--help Show this message and exit.
required: false
molecule_command:
description: |
Commands:
check Use the provisioner to perform a Dry-Run (destroy, dependency, create, prepare, converge).
cleanup Use the provisioner to cleanup any changes made to external systems during the stages of testing.
converge Use the provisioner to configure instances (dependency, create, prepare converge).
create Use the provisioner to start the instances.
dependency Manage the role's dependencies.
destroy Use the provisioner to destroy the instances.
drivers List drivers.
idempotence Use the provisioner to configure the instances and parse the output to determine idempotence.
init Initialize a new role or scenario.
lint Lint the role (dependency, lint).
list List status of instances.
login Log in to one instance.
matrix List matrix of steps used to test instances.
prepare Use the provisioner to prepare the instances into a particular starting state.
reset Reset molecule temporary folders.
side-effect Use the provisioner to perform side-effects to the instances.
syntax Use the provisioner to syntax check the role.
test Test (dependency, lint, cleanup, destroy, syntax, create, prepare, converge, idempotence, side_effect, verify, cleanup, destroy).
verify Run automated tests against instances.
required: true
default: "test"
molecule_args:
description: |
Arguments:
-s, --scenario-name TEXT Name of the scenario to target. (default)
-d, --driver-name [delegated|docker]
Name of driver to use. (delegated)
--all / --no-all Test all scenarios. Default is False.
--destroy [always|never] The destroy strategy used at the conclusion of a Molecule run (always).
--parallel / --no-parallel Enable or disable parallel mode. Default is disabled.
required: false
molecule_working_dir:
description: |
Path to another directory in the repository, where molecule command will be issued from.
Useful in those cases where Ansible roles are not in git repository root.
required: false
default: ${{ github.repository }}
runs:
using: docker
image: docker://gofrolist/molecule:v2.7.54
env:
ANSIBLE_ASYNC_DIR: "/tmp/.ansible_async"
ANSIBLE_FORCE_COLOR: "1"