Class AnsibleTaskResult
Holds the results for a specific task executed in an Ansible playbook.
Namespace: Neon.Xunit
Assembly: Neon.Xunit.dll
Syntax
public class AnsibleTaskResult
Properties
Changed
Returns true
if the task made any changes.
Declaration
public bool Changed { get; }
Property Value
Type | Description |
---|---|
bool |
ErrorText
Returns the standard error text from the task.
Declaration
public string ErrorText { get; }
Property Value
Type | Description |
---|---|
string |
HasStatus
Returns true
for tasks that returned JSON status.
Declaration
public bool HasStatus { get; }
Property Value
Type | Description |
---|---|
bool |
Message
Returns the error message (if any).
Declaration
public string Message { get; }
Property Value
Type | Description |
---|---|
string |
OutputText
Returns the standard output text from the task.
Declaration
public string OutputText { get; }
Property Value
Type | Description |
---|---|
string |
RawResults
Returns the raw task results.
Declaration
public string RawResults { get; }
Property Value
Type | Description |
---|---|
string |
Success
Returns true
if the task succeeded.
Declaration
public bool Success { get; }
Property Value
Type | Description |
---|---|
bool |
TaskName
Returns the task name.
Declaration
public string TaskName { get; }
Property Value
Type | Description |
---|---|
string |