Hi,

Did you submit the shell command with the same user ?

Regards,

Le 21/02/2020 à 21:31, Matt Zagrabelny a écrit :
Greetings,

I'm running ansible 2.9 (2.9.4+dfsg-1) and I've searched the mailing
list archives regarding this issue, but I haven't found out why I'm
seeing what I am seeing.

shell module is failing when I'm not expecting it to.

I run this command manually on my system:

$ dconf dump /org/mate/desktop/keybindings/ | grep "action='chromium'"
action='chromium'

but in ansible:

- name: get dconf desktop/keybindings for chromium
   shell: dconf dump /org/mate/desktop/keybindings/ | grep "action='chromium'"
   register: dconf_desktop_keybindings
   ignore_errors: True

and the output:

fatal: [zipper]: FAILED! => {"changed": true, "cmd": "dconf dump
/org/mate/desktop/keybindings/ | grep \"action='chromium'\"", "delta":
"0:00:00.005304", "end": "2020-02-21 14:24:31.441719", "msg":
"non-zero return code", "rc": 1, "start": "2020-02-21 14
:24:31.436415", "stderr": "", "stderr_lines": [], "stdout": "",
"stdout_lines": []}

Any ideas why it is failing?

Thanks for any help!

-m


--
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9a682b62-c988-cc7d-7002-216097170bb7%40lenhof.eu.org.

Reply via email to