Activities
- Host Check Host
- Facts Get
- Inventory Create
- Inventory Delete
- Inventory Read
- Inventory Update
- Module Create
- Module Delete
- Module Read
- Module Update
- Playbook Create
- Playbook Delete
- Playbook Execute
- Playbook Read
- Playbook Update
- Script Execution
Host Check
...
This activity checks if host(s) exists (ansible command ping).
Activity Parameters
The The Host Check Host activity parameters can be provided by manual inserted values or via IN arguments or variables:
...
If you only wish to extract a specific element from the list, use Get KeyValuePair activity based on Index or Key value:
Facts Get
This activity gathers facts about remote hosts.
Activity Parameters
The Facts Get activity parameters can be provided by manual inserted values or via IN arguments or variables:
Connection Parameters:
- Host name / IP Address (text box editor type) (type: string): the DNS name or IP Address of the SSH host.
- Password (password editor type) (type: string): the password for the provided username.
- Password Binding (text box editor type) (type: string): bind to a variable containing the encrypted password for the SSH host. (This parameter is used only when the user wants to send an encrypted password from outside the workflow, for example Flowster Portal).
- SSH Port (text box editor type) (type: Int32): default value for the SSH port is 22.
- SSH Timeout (text box editor type) (type: Int32): default value for the SSH timeout is 60 seconds to establish a SSH connection to the specified host.
- Username (text box editor type) (type: string): the username to connect to the SSH Ansible host.E.g. 'root'
Parameters:
- Filter (text box editor type) (type: string): enter the setup filter. E.g. 'filter=ansible_*_mb' .
- Hosts (text box editor type) (type: String[]): enter hosts array of strings .E.g. 'New String() {"hostname1", "hostname2"}'.
The Read Only Output variable are the possible output values that the activity will provide:
- Output (type: List <KeyValuePair <String,String>>): outputs the ansible result as a json string for each host in a list of keyvaluepair type where key = host name and value= ansible result in json format. To parse the result and get node values, use json activities
In order to iterate through the list of hosts and extract the key = host name and value = ansible result in json format, first use an iteration activity, e.g. Custom ForEach to loop through the list and extract the key and value for each host using Get KeyValuePair activity:
The value stored in output_Value variable is returned in json format. Use GetJSONNodeValue activity to extract the value of a specified node.
Inventory Create
This activity adds the specified groups and/or hosts to the inventory.
Activity Parameters
The Inventory Create activity parameters can be provided by manual inserted values or via IN arguments or variables:
...
This activity deletes the specified groups and/or hosts from the inventory.
Activity Parameters
The Inventory Delete activity parameters can be provided by manual inserted values or via IN arguments or variables:
...
This activity reads an inventory of groups and hosts, if existent.
Activity Parameters
The Inventory Read activity parameters can be provided by manual inserted values or via IN arguments or variables:
...
This activity updates the specified groups and/or hosts from the inventory.
Activity Parameters
The Inventory Update activity parameters can be provided by manual inserted values or via IN arguments or variables:
...
This activity creates a new module on a specified path.
Activity Parameters
The Module Create activity parameters can be provided by manual inserted values or via IN arguments or variables:
...
This activity deletes the specified module from the specified path.
Activity Parameters
The Module Delete activity parameters can be provided by manual inserted values or via IN arguments or variables:
...
This activity reads the specified module from the specified path.
Activity Parameters
The Module Read activity parameters can be provided by manual inserted values or via IN arguments or variables:
...
This activity updates the specified module from the specified path.
Activity Parameters
The Module Update activity parameters can be provided by manual inserted values or via IN arguments or variables:
...
This activity creates a new playbook on a specified path.
Activity Parameters
The Playbook Create activity parameters can be provided by manual inserted values or via IN arguments or variables:
...
This activity deletes the specified playbook.
Activity Parameters
The Playbook Delete activity parameters can be provided by manual inserted values or via IN arguments or variables:
...
This activity executes a specified playbook with/ without arguments.
Activity Parameters
The Playbook Execute activity parameters can be provided by manual inserted values or via IN arguments or variables:
...
This activity reads the specified playbook.
Activity Parameters
The Playbook Read activity parameters can be provided by manual inserted values or via IN arguments or variables:
...
This activity updates the specified playbook.
Activity Parameters
The Playbook Update activity parameters can be provided by manual inserted values or via IN arguments or variables:
...
This activity executes ansible script on each host from inventory.
Activity Parameters
The Script Execution activity parameters can be provided by manual inserted values or via IN arguments or variables:
...