On 14. okt. 2017 18:50, Vijay Misra wrote:
I tried Shell module too like below but it actually serach for vm*.log
file instead of all the vm.log files.
- name: Check whether vmware log file contains TDR
shell: grep 'TDR_DUMP' '{{guest_vm_path}}/{{item}}/vmware*.log'
Not an Ansible issue, but you are using single quotes around the file names.
Single qoutes mean _don't do_ expansion, aka send it unchanged to the
command, so you need to loose them or replace them with double quotes.
--
Kai Stian Olstad
--
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/7db36c07-7841-989d-b941-16013b17bfb9%40olstad.com.
For more options, visit https://groups.google.com/d/optout.