iagctl run service ansible-playbook

Run an Ansible playbook service.

The iagctl run service ansible-playbook command executes an Ansible playbook service and displays the resulting stdout, stderr, return code, and execution time information.

Syntax

$iagctl run service ansible-playbook <service-name> [flags]

Usage notes

Runtime variables

Use the --set flag to pass Ansible extra variables at runtime using key=value syntax. If you defined a decorator during service creation, IAG validates all --set values against it.

View accepted inputs

Use the --use flag with the service name to display information about the inputs a service accepts:

$iagctl run service ansible-playbook <service-name> --use

Examples

Run a playbook service

$iagctl run service ansible-playbook my-ansible-service

Run a playbook service with extra variables

$iagctl run service ansible-playbook my-ansible-service \
>--set interface=0/0/0

Options

$ -h, --help Help for ansible-playbook
$ --set stringArray Runtime input arguments as key=value pairs. Values are validated against the decorator, if one is defined.
$ --use Display usage of the service.

Options inherited from parent commands

$ --config string Path to the configuration file
$ --raw Display the result of the command in raw format
$ --verbose Enable verbose output