Skip to content
Connector

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…

@ftnt-dspilleMaintainer v1.0.0 Published Oct 6, 2026
Download .tgz · 17 KB

ansible-automation_1.0.0.tgz

sha256:9df1e48efa04bba649968e7d2e1f8b2814618999a91e36049b405eed958acd7d
Source repository

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_inventory textarea

    Specify 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_username text

    Specify the default user to connect to remote hosts as.

  • SSH Private Key ssh_private_key password

    Specify 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_password password

    Specify 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 become checkbox

    Select this option to escalate privileges on remote hosts.

    Default false

  • Become Method become_method select

    Select the privilege escalation method to use when Become is selected.

    Default sudo

    Options sudosupbrunpfexecdoasdzdoksurunas
  • Become User become_user text

    Specify the user to escalate to. Leave blank to escalate to root.

  • Become Password become_password password

    Specify the password used for privilege escalation, if one is required.

  • Verify Host Keys host_key_checking checkbox

    Specifies 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_path text

    Specify an absolute path in which Ansible collections are installed and resolved from. Leave blank to use the connector's default path.

  • Default Timeout default_timeout integer

    Specify 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 forks integer

    Specify the number of hosts Ansible configures in parallel.

    Default 5

  • Verbosity verbosity select

    Select the default Ansible verbosity level.

    Default 0

    Options 01234
  • Run Retention (Hours) run_retention_hours integer

    Specify the number of hours retained run directories are kept for before they are removed.

    Default 24

Operations · 10

  • Run Playbook 16 params
    run_playbook

    Executes 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_type select required

      Select where the playbook comes from: inline YAML, an absolute path on the FortiSOAR node, or a git repository.

      Default inline

      Options inlinepathgit
    • Playbook playbook textarea required

      Specify 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_repo text

      Specify the repository URL to clone when the source type is git.

    • Git Branch git_branch text

      Specify the branch to clone when the source type is git. Leave blank for the default branch.

    • Git Token git_token password

      Specify an access token for a private http(s) repository. Leave blank to use the SSH key from the connector configuration.

    • Inventory inventory textarea

      Specify 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_vars json

      Specify extra variables to pass to the play, as a JSON object. Equivalent to ansible-playbook --extra-vars.

    • Limit limit text

      Specify a host pattern to restrict the run to a subset of the inventory. Equivalent to --limit.

    • Tags tags text

      Specify a comma-separated list of tags. Only tasks carrying these tags run. Equivalent to --tags.

    • Skip Tags skip_tags text

      Specify a comma-separated list of tags whose tasks are skipped. Equivalent to --skip-tags.

    • Check Mode check_mode checkbox

      Select this option to run without making changes, i.e. a dry run. Equivalent to --check.

      Default false

    • Diff diff checkbox

      Select this option to return the differences that would be applied to changed files. Equivalent to --diff.

      Default false

    • Verbosity verbosity select

      Select the Ansible verbosity level for this run. Leave at Default to inherit the connector configuration.

      Default Default

      Options Default01234
    • Timeout timeout integer

      Specify the maximum number of seconds this run may take before it is terminated. Leave blank to use the connector configuration default.

    • Wait For Completion wait checkbox

      Select 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_artifacts checkbox

      Select 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_module

    Executes 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 module text required

      Specify the module to run, optionally fully qualified.

    • Module Arguments module_args text

      Specify the module arguments in Ansible's key=value form.

    • Host Pattern hosts text

      Specify the host pattern to target within the inventory.

      Default all

    • Inventory inventory textarea

      Specify 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_vars json

      Specify extra variables to pass to the play, as a JSON object. Equivalent to ansible-playbook --extra-vars.

    • Limit limit text

      Specify a host pattern to restrict the run to a subset of the inventory. Equivalent to --limit.

    • Tags tags text

      Specify a comma-separated list of tags. Only tasks carrying these tags run. Equivalent to --tags.

    • Skip Tags skip_tags text

      Specify a comma-separated list of tags whose tasks are skipped. Equivalent to --skip-tags.

    • Check Mode check_mode checkbox

      Select this option to run without making changes, i.e. a dry run. Equivalent to --check.

      Default false

    • Diff diff checkbox

      Select this option to return the differences that would be applied to changed files. Equivalent to --diff.

      Default false

    • Verbosity verbosity select

      Select the Ansible verbosity level for this run. Leave at Default to inherit the connector configuration.

      Default Default

      Options Default01234
    • Timeout timeout integer

      Specify the maximum number of seconds this run may take before it is terminated. Leave blank to use the connector configuration default.

    • Wait For Completion wait checkbox

      Select 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_artifacts checkbox

      Select 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_role

    Executes a single Ansible role against a host pattern and returns the per-host and per-task results.

    • Role role text required

      Specify the name of the role to execute.

    • Roles Path roles_path text

      Specify an absolute path on the FortiSOAR node containing the role. Leave blank to resolve the role from the configured collections path.

    • Host Pattern hosts text

      Specify the host pattern to target within the inventory.

      Default all

    • Inventory inventory textarea

      Specify 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_vars json

      Specify extra variables to pass to the play, as a JSON object. Equivalent to ansible-playbook --extra-vars.

    • Limit limit text

      Specify a host pattern to restrict the run to a subset of the inventory. Equivalent to --limit.

    • Tags tags text

      Specify a comma-separated list of tags. Only tasks carrying these tags run. Equivalent to --tags.

    • Skip Tags skip_tags text

      Specify a comma-separated list of tags whose tasks are skipped. Equivalent to --skip-tags.

    • Check Mode check_mode checkbox

      Select this option to run without making changes, i.e. a dry run. Equivalent to --check.

      Default false

    • Diff diff checkbox

      Select this option to return the differences that would be applied to changed files. Equivalent to --diff.

      Default false

    • Verbosity verbosity select

      Select the Ansible verbosity level for this run. Leave at Default to inherit the connector configuration.

      Default Default

      Options Default01234
    • Timeout timeout integer

      Specify the maximum number of seconds this run may take before it is terminated. Leave blank to use the connector configuration default.

    • Wait For Completion wait checkbox

      Select 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_artifacts checkbox

      Select 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_status

    Retrieves the current status, return code, and statistics of a run started asynchronously, based on the run identifier you have specified.

    • Run Identifier ident text required

      Specify the identifier returned when the run was started.

  • Get Run Artifacts 1 param
    get_run_artifacts

    Retrieves the full event stream, standard output, and gathered fact cache of a retained run, based on the run identifier you have specified.

    • Run Identifier ident text required

      Specify the identifier of a run that was executed with Keep Artifacts selected.

  • Cancel Run 1 param
    cancel_run

    Terminates a run that is currently executing, based on the run identifier you have specified.

    • Run Identifier ident text required

      Specify the identifier of the run to terminate.

  • Validate Playbook 5 params
    validate_playbook

    Performs a syntax check on a playbook without executing it, and returns whether it is valid.

    • Source Type source_type select required

      Select where the playbook comes from: inline YAML, an absolute path on the FortiSOAR node, or a git repository.

      Default inline

      Options inlinepathgit
    • Playbook playbook textarea required

      Specify 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_repo text

      Specify the repository URL to clone when the source type is git.

    • Git Branch git_branch text

      Specify the branch to clone when the source type is git.

    • Git Token git_token password

      Specify an access token for a private http(s) repository.

  • List Collections
    list_collections

    Retrieves the Ansible collections installed in the connector's collections path.

    No parameters.

  • Install Collection 2 params
    install_collection

    Installs an Ansible collection from Ansible Galaxy into the connector's collections path.

    • Collection collection text required

      Specify the collection to install, optionally with a version.

    • Force force checkbox

      Select this option to reinstall the collection even if it is already present.

      Default false

  • List Modules 1 param
    list_modules

    Retrieves the Ansible modules resolvable in the connector's environment, optionally filtered by a substring.

    • Filter filter text

      Specify a substring to filter the module names by. Leave blank to return every resolvable module.

Something wrong with this item? Sign in to report

Report a problem

Sensitive data, copied content, broken imports, anything that shouldn't be here.

At least 10 characters. Please don't paste the sensitive value itself.0/1000