I need to reject “" from stdout lines. all values from stdout_lines except "” symbol to be saved to “nfs_clients” variable
"stdout_lines": [
"rchinnn01",
"rchinnn02",
"*"
]
- set_fact:
nfs_clients: "{{ nfs_clients_out.stdout_lines | reject('search','*') | list }}"
TASK [set_fact] ***************************************************************************************************** An exception occurred during task execution. To see the full traceback, use -vvv. The error was: error: nothing to repeat fatal: [rchinnn03]: FAILED! => {“msg”: “Unexpected failure during module execution.”, “stdout”: “”}