action-ansible-playbook/action.yml
Scott Rubin d45b74f42d Add support for SSH Host Key Checking
By default it seems that SSH host key checking has been disabled. This
patch makes it optional. If a variable named known_hosts is passed in,
the key checking will be enabled. The variable should contain the
complete contents of the known_hosts file, which must contain the public
key(s) of the host(s) in the inventory.
2021-04-04 16:51:46 -04:00

35 lines
923 B
YAML

name: Run Ansible playbook
description: Execute Ansible playbook on selected hosts
branding:
color: red
icon: play
inputs:
playbook:
description: Ansible playbook filepath
required: true
requirements:
description: Ansible Galaxy requirements filepath
required: false
directory:
description: Root directory of Ansible project (defaults to current)
required: false
key:
description: SSH private key used to connect to the host
required: false
inventory:
description: Custom content to write into hosts
required: false
vault_password:
description: The password used for decrypting vaulted files
required: false
known_hosts:
description: Contents of SSH known_hosts file
required: false
options:
description: Extra options that should be passed to ansible-playbook command
required: false
runs:
using: node12
main: main.js
post: post.js