Ansible – add user to sudo
I’m using Ansible for some time. Great tool! Now for some example; allow user to use sudo. Many tasks samples look’s like this (tabs/spaces cut by dummy WP editor! sorry!): – name: Ensuring that wheel is able to use sudo without password lineinfile: path: /etc/sudoers regexp: '^%wheel’ line: '%wheel ALL=(ALL) NOPASSWD: ALL’ validate: 'visudo -cf …