On 07. juli 2016 08:49, Leo P wrote:
I have tried escaping characters but it didn't seem to make any difference.
According to the documentation I've seen, this should work:
- name: Change keyboard layout to U.S.
lineinfile: dest=/etc/default/keyboard
regexp='XKBLAYOUT="gb"'
replace='XKBLAYOUT="us"'
But I get this error:
TASK [Change keyboard layout to U.S.]
******************************************
fatal: [raspberrypi]: FAILED! => {"changed": false, "failed": true, "msg":
"unsupported parameter for module: replace"}
The ansible version is 2.1.0.0 running on fedora 23. What am I doing wrong?
Module lineinfile doesn't have replace parameter. I think you are trying
to use the replace module.
- name: Change keyboard layout to U.S.
replace:
dest=/etc/default/keyboard
regexp='XKBLAYOUT="gb"'
replace='XKBLAYOUT="us"'
--
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/577E956C.6050707%40olstad.com.
For more options, visit https://groups.google.com/d/optout.