mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Fix cli_command junos test failure and update doc (#44021)
* Fix cli_command junos test failure and update doc * Fix cli_command module integration test failure for junos * Update cli_command module doc for prompt and config command run scenario's * Update cli_command module doc
This commit is contained in:
@@ -57,6 +57,17 @@ EXAMPLES = """
|
||||
command: commit replace
|
||||
prompt: This commit will replace or remove the entire running configuration
|
||||
answer: yes
|
||||
|
||||
- name: run config mode command and handle prompt/answer
|
||||
cli_command:
|
||||
command: "{{ item }}"
|
||||
prompt:
|
||||
- "Exit with uncommitted changes"
|
||||
answer: yes
|
||||
loop:
|
||||
- configure
|
||||
- set system syslog file test any any
|
||||
- exit
|
||||
"""
|
||||
|
||||
RETURN = """
|
||||
|
||||
Reference in New Issue
Block a user