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": ""}
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/1e121e79-48a7-4811-91d6-9c609b7cdf29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.