I have what I thought was an easy problem to solve. A client has several different set ups of Debian 10 hosts. We are using ansible to install osqueryd and need to install the osqueryd.service file. I am trying to register the first result of the command:
“locate osqueryd.service.”
The error I am getting is:
“Invalid variable name is ‘register’ specified: 'osqueryd-service-file”
Besides replacing the hyphens for underscore (as was already mentioned), aren’t you missing the {{}} in your msg statement?
msg: “osqueryd service file is {{ osqueryd-service-file.results.1.stdout}}”