Class AnsiblePlayResults
Holds the results from an AnsiblePlayer play operation.
Namespace: Neon.Xunit
Assembly: Neon.Xunit.dll
Syntax
public class AnsiblePlayResults
Properties
RawResults
Returns the raw execution results.
Declaration
public ExecuteResponse RawResults { get; }
Property Value
| Type | Description |
|---|---|
| ExecuteResponse |
TaskResults
Returns the list of AnsibleTaskResult instance in the order of execution.
Declaration
public List<AnsibleTaskResult> TaskResults { get; }
Property Value
| Type | Description |
|---|---|
| List<AnsibleTaskResult> |
Methods
GetTaskResult(string)
Returns the first AnsibleTaskResult for a named task.
Declaration
public AnsibleTaskResult GetTaskResult(string taskName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | taskName | The task name. |
Returns
| Type | Description |
|---|---|
| AnsibleTaskResult | The AnsibleTaskResult or |
Remarks
note
Ansible does not enforce task name uniqueness, so it's possible to have more than one task sharing the same name.