![]() ![]() The module will skip running the script when in check mode unless the script defines ). ![]() Write-Output "foo" and "foo" give the same result. This is true not only for Write-Output and its built-in alias echo, but also for implicit output i.e. Added in 1.9.0.Īny host/console direct output like Write-Host or ::WriteLine is not considered an output object, they are returned as a string in host_out and host_err.Īny output stream object is instead returned as a list in output. Allows the script to set VerbosePreference/DebugPreference based on verbosity. $Ansible.Verbosity reveals Ansible’s verbosity level for this play. $Ansible.Tmpdir is the path to a temporary directory to use as a scratch location that is cleaned up after the module has finished. $Ansible.Failed can be set to true if the script wants to return the failure back to the controller. $Ansible.Changed can be set to true or false to reflect whether the module made a change or not. $Ansible.Diff was added in the 1.12.0 release of ansible.windows and is a dictionary that is set to the diff result that can be interepreted by Ansible. $Ansible.Result is a value that is returned back to the controller as is. The script has access to the $Ansible variable where it can set Result, Changed, Failed, Diff, or access Tmpdir. Type will contain a dictionary with Name, FullName, AssemblyQualifiedName, BaseType being the type name, the type name including the namespace, the full assembly name the type was defined in and the base type it derives from. The output values are processed using a custom filter and while it mostly matches the ConvertTo-Json result the following value types are different.ĭateTime will be an ISO 8601 string in UTC, DateTimeOffset will have the offset as specified by the value.Įnum will contain a dictionary with Type, String, Value being the type name, string representation and raw integer value respectively. The module is set as failed when a terminating exception is throw, or error_action=stop and a normal error record is raised. Controlling how Ansible behaves: precedence rules.Collections in the Theforeman Namespace. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |