>From the below debug module , I try filter the ouput

- name:  status of the output
  debug:
    msg: "status  of {{serverName}} is  {{ [9] | map('extract', 
stat_out[0].split(',')) }}"
      register: server_status     

  
The output is 

TASK [status of the output] 
*******************************************************************************************
ok: [localhost] =>
  msg: 'status  of client11  is  ['' "Status": "Completed"'']'

 
 
 and when  I try to  still filter the output , but missing a delimiter 
(like cut -d: -f1). 
 

 Expecting the output as below . 
   msg: 'status  of the server client11.example.com  is  [Completed]'

Any String(Word) like Completed or Failed to be captured in [] 

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5cc06e34-062e-4513-81d5-64db5c183488n%40googlegroups.com.

Reply via email to