Hi,
I would like to use ansible to execute commands on a host.
This works
`
ansible -i ./ec2.py 192.168.108.53 -s -u ansible -a “rpm -qa --last kernel”
`
This does not work as expected the output of rpm is given as the final output. I would like to filter the output further.
`
ansible -i ./ec2.py 192.168.108.53 -s -u ansible -a “rpm -qa --last | grep kernel”
`
Any suggestions?
Regards,
Abey