Can anyone help me on this request? Regards, Suresh
On Thu, Apr 30, 2020 at 4:14 AM Suresh Karpurapu <[email protected]> wrote: > Hi All, > > Would anyone please help me formatting mountchk.result. I am able to get > the required output with > item.stdout_lines[0],item.stdout_lines[1],item.stdout_lines[2] but host3 > has 6 entries. So, please help me in filtering > > > mountchk.results: > ================= > host1: > "stdout": "nfsflr01:/app01\n/app\n/etc/fstab", > "stdout_lines": [ > "nfsflr01:/app01", > "/app", > "/etc/fstab" > > host2: > "stdout": "nfsflr02:/app02\n/app02\n/etc/fstab", > "stdout_lines": [ > "nfsflr02:/app02", > "/app02", > "/etc/fstab" > host3: > "stdout": > "nfsflr03:/app03\n/app03\n/etc/fstab\nnfsflr03:/app03\n/app03\n/etc/rc.willows", > "stdout_lines": [ > "nfsflr03:/app03", > "/app03", > "/etc/fstab", > "nfsflr03:/app03", > "/app03", > "/etc/rc.willows" > > Required filtering: > ================== > host1,nfsflr01:/app01,/app,/etc/fstab > host2,nfsflr02:/app02,/app02,/etc/fstab > host3,nfsflr03:/app03,/app03,/etc/fstab > host3,nfsflr03:/app03,/app03,/etc/rc.willows > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/e931b86e-2c7d-4293-a280-6690818bc94e%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/e931b86e-2c7d-4293-a280-6690818bc94e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAHedzhJ4VBMQhYKBFhMcpu73Kebvr8zO_a884xtBkdWFMdnTnw%40mail.gmail.com.
