How can I appropriately pass this command through? - unsupported parameter.

68 views
Skip to first unread message

Luke Guerry

unread,
May 18, 2016, 4:59:48 PM5/18/16
to Ansible Project

I've been trying different methods, and trying to escape the characters '\', but I cannot seem to figure out how to pass this whole command through.

I haven't really turned up anything online either.



I've tested the command locally on my admin server and it works as stated, but not with ansible.




ansible dns-servers -m shell -s -a "auditctl -a always,exit -F arch=b64 -S fchownat -F auid\>=500 -F auid\!=4294967295 -k perm_mod"

dns001.polly.com | FAILED | rc=0 >>

unsupported parameter for module: auid\>


Thanks for any assistance.



Johannes Kastl

unread,
May 19, 2016, 8:24:48 AM5/19/16
to ansible...@googlegroups.com
On 18.05.16 15:30 Luke Guerry wrote:

> ansible dns-servers -m shell -s -a "auditctl -a always,exit -F arch=b64 -S
> fchownat -F auid\>=500 -F auid\!=4294967295 -k perm_mod"

I had to quote a equal sign when using ad-hoc commands against a
freebsd host. Also try single quotes instead of double quotes just to
rule out the controller's shell interfering...

Johannes

signature.asc
Reply all
Reply to author
Forward
0 new messages