Ansible Automation
Run Ansible playbooks, modules and roles
Executes Ansible playbooks, ad-hoc modules, and roles directly from FortiSOAR playbooks using ansible-runner, returning structured per-host and per-task…
ansible-automation_1.0.0.tgz
Community code that runs on your platform. A maintainer reviewed this exact source; the download is rebuilt from it. Follow the to install it.
Configuration · 14 fields
- Default Inventory
default_inventorytextareaSpecify the inventory used when a playbook step does not supply one, as YAML, INI, or a JSON object. Leave blank to default to implicit localhost.
- SSH Username
ssh_usernametextSpecify the default user to connect to remote hosts as.
- SSH Private Key
ssh_private_keypasswordSpecify the PEM-encoded private key used to connect to remote hosts. The key is written to a run-scoped file with owner-only permissions and removed when the run completes.
- SSH Password
ssh_passwordpasswordSpecify the password used to connect to remote hosts, as an alternative to a private key. The password is supplied to Ansible through its prompt channel and never appears on the command line.
- Become
becomecheckboxSelect this option to escalate privileges on remote hosts.
Default
false - Become Method
become_methodselectSelect the privilege escalation method to use when Become is selected.
Default
sudoOptions sudosupbrunpfexecdoasdzdoksurunas - Become User
become_usertextSpecify the user to escalate to. Leave blank to escalate to root.
- Become Password
become_passwordpasswordSpecify the password used for privilege escalation, if one is required.
- Verify Host Keys
host_key_checkingcheckboxSpecifies whether the SSH host keys of remote hosts are to be verified against the connector's known_hosts file. Clearing this option disables host key verification.
Default
true - Collections Path
collections_pathtextSpecify an absolute path in which Ansible collections are installed and resolved from. Leave blank to use the connector's default path.
- Default Timeout
default_timeoutintegerSpecify the maximum number of seconds a run may take before it is terminated, used when a playbook step does not specify its own timeout.
Default
300 - Forks
forksintegerSpecify the number of hosts Ansible configures in parallel.
Default
5 - Verbosity
verbosityselectSelect the default Ansible verbosity level.
Default
0Options 01234 - Run Retention (Hours)
run_retention_hoursintegerSpecify the number of hours retained run directories are kept for before they are removed.
Default
24
Operations · 10
Run Playbook 16 params
run_playbookrun_playbookExecutes an Ansible playbook supplied inline, read from a path on the FortiSOAR node, or cloned from a git repository, and returns the per-host and per-task results.
- Source Type
source_typeselect requiredSelect where the playbook comes from: inline YAML, an absolute path on the FortiSOAR node, or a git repository.
Default
inlineOptions inlinepathgit - Playbook
playbooktextarea requiredSpecify the playbook. For the inline source type this is the playbook YAML itself; for the path source type an absolute path; for the git source type the path to the playbook within the repository.
- Git Repository
git_repotextSpecify the repository URL to clone when the source type is git.
- Git Branch
git_branchtextSpecify the branch to clone when the source type is git. Leave blank for the default branch.
- Git Token
git_tokenpasswordSpecify an access token for a private http(s) repository. Leave blank to use the SSH key from the connector configuration.
- Inventory
inventorytextareaSpecify the inventory to run against, as YAML, INI, or a JSON object. Leave blank to use the default inventory from the connector configuration, or implicit localhost if that is also blank.
- Extra Variables
extra_varsjsonSpecify extra variables to pass to the play, as a JSON object. Equivalent to ansible-playbook --extra-vars.
- Limit
limittextSpecify a host pattern to restrict the run to a subset of the inventory. Equivalent to --limit.
- Tags
tagstextSpecify a comma-separated list of tags. Only tasks carrying these tags run. Equivalent to --tags.
- Skip Tags
skip_tagstextSpecify a comma-separated list of tags whose tasks are skipped. Equivalent to --skip-tags.
- Check Mode
check_modecheckboxSelect this option to run without making changes, i.e. a dry run. Equivalent to --check.
Default
false - Diff
diffcheckboxSelect this option to return the differences that would be applied to changed files. Equivalent to --diff.
Default
false - Verbosity
verbosityselectSelect the Ansible verbosity level for this run. Leave at Default to inherit the connector configuration.
Default
DefaultOptions Default01234 - Timeout
timeoutintegerSpecify the maximum number of seconds this run may take before it is terminated. Leave blank to use the connector configuration default.
- Wait For Completion
waitcheckboxSelect this option to block until the run finishes and return the full result. Clear it to start the run asynchronously and return an identifier you can poll with Get Run Status.
Default
true - Keep Artifacts
keep_artifactscheckboxSelect this option to retain the run directory after completion so that Get Run Artifacts can read it. Retained runs are removed after the configured retention period.
Default
false
Run Module 14 params
run_modulerun_moduleExecutes a single Ansible module against a host pattern, i.e. the equivalent of an ad-hoc ansible command, and returns the per-host results.
- Module
moduletext requiredSpecify the module to run, optionally fully qualified.
- Module Arguments
module_argstextSpecify the module arguments in Ansible's key=value form.
- Host Pattern
hoststextSpecify the host pattern to target within the inventory.
Default
all - Inventory
inventorytextareaSpecify the inventory to run against, as YAML, INI, or a JSON object. Leave blank to use the default inventory from the connector configuration, or implicit localhost if that is also blank.
- Extra Variables
extra_varsjsonSpecify extra variables to pass to the play, as a JSON object. Equivalent to ansible-playbook --extra-vars.
- Limit
limittextSpecify a host pattern to restrict the run to a subset of the inventory. Equivalent to --limit.
- Tags
tagstextSpecify a comma-separated list of tags. Only tasks carrying these tags run. Equivalent to --tags.
- Skip Tags
skip_tagstextSpecify a comma-separated list of tags whose tasks are skipped. Equivalent to --skip-tags.
- Check Mode
check_modecheckboxSelect this option to run without making changes, i.e. a dry run. Equivalent to --check.
Default
false - Diff
diffcheckboxSelect this option to return the differences that would be applied to changed files. Equivalent to --diff.
Default
false - Verbosity
verbosityselectSelect the Ansible verbosity level for this run. Leave at Default to inherit the connector configuration.
Default
DefaultOptions Default01234 - Timeout
timeoutintegerSpecify the maximum number of seconds this run may take before it is terminated. Leave blank to use the connector configuration default.
- Wait For Completion
waitcheckboxSelect this option to block until the run finishes and return the full result. Clear it to start the run asynchronously and return an identifier you can poll with Get Run Status.
Default
true - Keep Artifacts
keep_artifactscheckboxSelect this option to retain the run directory after completion so that Get Run Artifacts can read it. Retained runs are removed after the configured retention period.
Default
false
Run Role 14 params
run_rolerun_roleExecutes a single Ansible role against a host pattern and returns the per-host and per-task results.
- Role
roletext requiredSpecify the name of the role to execute.
- Roles Path
roles_pathtextSpecify an absolute path on the FortiSOAR node containing the role. Leave blank to resolve the role from the configured collections path.
- Host Pattern
hoststextSpecify the host pattern to target within the inventory.
Default
all - Inventory
inventorytextareaSpecify the inventory to run against, as YAML, INI, or a JSON object. Leave blank to use the default inventory from the connector configuration, or implicit localhost if that is also blank.
- Extra Variables
extra_varsjsonSpecify extra variables to pass to the play, as a JSON object. Equivalent to ansible-playbook --extra-vars.
- Limit
limittextSpecify a host pattern to restrict the run to a subset of the inventory. Equivalent to --limit.
- Tags
tagstextSpecify a comma-separated list of tags. Only tasks carrying these tags run. Equivalent to --tags.
- Skip Tags
skip_tagstextSpecify a comma-separated list of tags whose tasks are skipped. Equivalent to --skip-tags.
- Check Mode
check_modecheckboxSelect this option to run without making changes, i.e. a dry run. Equivalent to --check.
Default
false - Diff
diffcheckboxSelect this option to return the differences that would be applied to changed files. Equivalent to --diff.
Default
false - Verbosity
verbosityselectSelect the Ansible verbosity level for this run. Leave at Default to inherit the connector configuration.
Default
DefaultOptions Default01234 - Timeout
timeoutintegerSpecify the maximum number of seconds this run may take before it is terminated. Leave blank to use the connector configuration default.
- Wait For Completion
waitcheckboxSelect this option to block until the run finishes and return the full result. Clear it to start the run asynchronously and return an identifier you can poll with Get Run Status.
Default
true - Keep Artifacts
keep_artifactscheckboxSelect this option to retain the run directory after completion so that Get Run Artifacts can read it. Retained runs are removed after the configured retention period.
Default
false
Get Run Status 1 param
get_run_statusget_run_statusRetrieves the current status, return code, and statistics of a run started asynchronously, based on the run identifier you have specified.
- Run Identifier
identtext requiredSpecify the identifier returned when the run was started.
Get Run Artifacts 1 param
get_run_artifactsget_run_artifactsRetrieves the full event stream, standard output, and gathered fact cache of a retained run, based on the run identifier you have specified.
- Run Identifier
identtext requiredSpecify the identifier of a run that was executed with Keep Artifacts selected.
Cancel Run 1 param
cancel_runcancel_runTerminates a run that is currently executing, based on the run identifier you have specified.
- Run Identifier
identtext requiredSpecify the identifier of the run to terminate.
Validate Playbook 5 params
validate_playbookvalidate_playbookPerforms a syntax check on a playbook without executing it, and returns whether it is valid.
- Source Type
source_typeselect requiredSelect where the playbook comes from: inline YAML, an absolute path on the FortiSOAR node, or a git repository.
Default
inlineOptions inlinepathgit - Playbook
playbooktextarea requiredSpecify the playbook to validate. For the inline source type this is the playbook YAML itself; for the path source type an absolute path; for the git source type the path within the repository.
- Git Repository
git_repotextSpecify the repository URL to clone when the source type is git.
- Git Branch
git_branchtextSpecify the branch to clone when the source type is git.
- Git Token
git_tokenpasswordSpecify an access token for a private http(s) repository.
List Collections
list_collectionslist_collectionsRetrieves the Ansible collections installed in the connector's collections path.
No parameters.
Install Collection 2 params
install_collectioninstall_collectionInstalls an Ansible collection from Ansible Galaxy into the connector's collections path.
- Collection
collectiontext requiredSpecify the collection to install, optionally with a version.
- Force
forcecheckboxSelect this option to reinstall the collection even if it is already present.
Default
false
List Modules 1 param
list_moduleslist_modulesRetrieves the Ansible modules resolvable in the connector's environment, optionally filtered by a substring.
- Filter
filtertextSpecify a substring to filter the module names by. Leave blank to return every resolvable module.