@ -145,13 +145,6 @@ Running the above task will cause an error to be generated with a message that r
Overall, this provides a very granular level of control over how credentials are used with modules. It provides the playbook designer maximum control for changing context during a playbook run as needed.
Overall, this provides a very granular level of control over how credentials are used with modules. It provides the playbook designer maximum control for changing context during a playbook run as needed.
.._networking_module_types:
Understanding Networking Module Types
`````````````````````````````````````
TBD
.._networking_environment_variables:
.._networking_environment_variables:
Networking Environment Variables
Networking Environment Variables
@ -188,13 +181,48 @@ Ansible allows you to use conditionals to control the flow of your playbooks. An
* contains - Object contains specified item
* contains - Object contains specified item
Conditionals used with networking command modules only evaluate results, not stdout. For example, the following example won't work::
Conditional statements evalute the results from the commands that are
executed remotely on the device. Once the task executes the command
set, the waitfor argument can be used to evalute the results before
return control to the Ansible playbook.
---
For example::
waitfor: "stdout_lines[0][6] contains '100.00'"
To evaluate this properly, you'll need to compare against results. For example::