For this ansible task:
- name: wheel sudoers
shell: sed -i -e "s/# %wheel\tALL=(ALL)\tNOPASSWD: ALL/%wheel\tALL=(ALL)\tNOPASSWD: ALL/g" /etc/sudoers
Need to replace # %wheel\tALL=(ALL)\tNOPASSWD: ALL with %wheel\tALL=(ALL)\tNOPASSWD: ALL.
But this syntax got an error after the first NOPASSWD: area:
X mapping values are not allowed in this context
Why can't I use this syntax?