I am using Ansible 2.2 and I am running into issues when using the “find” module. My intention is to check for a pattern in a remote host file. Please note the code:
ok: [xxxx.xxx.com] => {“changed”: false, “examined”: 0, “files”: , “matched”: 0, “msg”: “/home/rnair/test.txt was skipped as it does not seem to be a valid directory or it cannot be accessed\n”}
TASK [par : debug] *************************************************************
ok: [xxxx.xxx.com] => {
“output”: {
“changed”: false,
“examined”: 0,
“files”: ,
“matched”: 0,
“msg”: “/home/rnair/test.txt was skipped as it does not seem to be a valid directory or it cannot be accessed\n”
}
}