mirror of https://github.com/ansible/ansible.git
* Revert "commented out check tests (#35788)" This reverts commitpull/36133/head3df2561405
. * `discard_changes()` now uses `exit discard` instead of just `discard`. Also a slight tweak to avoid a second `exit` after `exit discard` (cherry picked from commit6cdf91fd35
)
parent
c76caf3c29
commit
707fd61a78
@ -1,13 +1,13 @@
|
||||
# hit check conditional in module_utils.network.vyos -> load_config()
|
||||
# - name: configure simple config command
|
||||
# vyos_config:
|
||||
# lines: set system host-name check-test
|
||||
# check_mode: yes
|
||||
#
|
||||
# - name: get host name
|
||||
# vyos_command:
|
||||
# commands: show host name
|
||||
# register: result
|
||||
#
|
||||
# - assert:
|
||||
# that: '"check-test" not in result.stdout'
|
||||
- name: configure simple config command
|
||||
vyos_config:
|
||||
lines: set system host-name check-test
|
||||
check_mode: yes
|
||||
|
||||
- name: get host name
|
||||
vyos_command:
|
||||
commands: show host name
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that: '"check-test" not in result.stdout'
|
||||
|
Loading…
Reference in New Issue