|
|
@ -23,6 +23,13 @@
|
|
|
|
- "result.failed == true"
|
|
|
|
- "result.failed == true"
|
|
|
|
- "result.msg is defined"
|
|
|
|
- "result.msg is defined"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Remove existing file if any
|
|
|
|
|
|
|
|
cli_command:
|
|
|
|
|
|
|
|
command: 'delete harddisk:ansible_tmp.txt'
|
|
|
|
|
|
|
|
prompt: 'Delete harddisk\:ansible_tmp\.txt\[confirm\]'
|
|
|
|
|
|
|
|
answer: "\r\n"
|
|
|
|
|
|
|
|
ignore_errors: yes
|
|
|
|
|
|
|
|
|
|
|
|
- block:
|
|
|
|
- block:
|
|
|
|
- name: Run command with prompt
|
|
|
|
- name: Run command with prompt
|
|
|
|
cli_command:
|
|
|
|
cli_command:
|
|
|
@ -34,7 +41,7 @@
|
|
|
|
- assert:
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- "result.stdout is defined"
|
|
|
|
- "result.stdout is defined"
|
|
|
|
- "'ansible_tmp' in result.stdout[0]"
|
|
|
|
- "'ansible_tmp' in result.stdout"
|
|
|
|
always:
|
|
|
|
always:
|
|
|
|
- name: Remove copied file
|
|
|
|
- name: Remove copied file
|
|
|
|
cli_command:
|
|
|
|
cli_command:
|
|
|
|