-
Notifications
You must be signed in to change notification settings - Fork 19
/
action.yml
51 lines (51 loc) · 1.74 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
# action.yml
name: 'Execute Ansible Playbook'
author: 'Patrick Pötz'
description: 'Executes an Ansible Playbook as Github Action'
inputs:
playbookName:
description: 'Name of the playbook in your workspace.'
required: true
inventoryFile:
description: 'Name of the inventory file to use.'
required: false
requirementsFile:
description: 'name of the requirements file to use.'
required: false
galaxyGithubUser:
description: 'If you use private github repositories in your requirements file you need to set galaxyGithubUser and galaxyGithub token.'
required: false
galaxyGithubToken:
description: 'Token to access git source of roles to download. Only needed for private git sources. Github Account needs to be linked to Ansible Galaxy.'
required: false
rolesPath:
description: 'If inventoryFile is set you can also specify a custom roles path to install your required roles in.'
required: false
keyFile:
description: 'Keyfile to use for host connections.'
required: false
extraVars:
description: 'String containing all extraVars which you want to be injected into the run.'
required: false
extraFile:
description: 'File containing extra vars.'
required: false
verbosity:
description: 'Choose one of 4 verbosity levels. See Ansible documentation for details.'
required: false
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.playbookName }}
- ${{ inputs.inventoryFile }}
- ${{ inputs.requirementsFile }}
- ${{ inputs.galaxyGithubUser }}
- ${{ inputs.galaxyGithubToken }}
- ${{ inputs.keyFile }}
- ${{ inputs.extraVars }}
- ${{ inputs.extraFile }}
- ${{ inputs.verbosity }}
branding:
icon: 'cloud-lightning'
color: 'purple'