Created
September 12, 2016 09:39
-
-
Save acsrujan/1e647a864375c00025e4ca7d53770168 to your computer and use it in GitHub Desktop.
Ansible Playbook to update sudo file on ubuntu with NOPASSWD for all users with 'sudo' permission.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
#Updates sudo file on ubuntu with NOPASSWD for all users. | |
- hosts: all | |
sudo: yes | |
tasks: | |
- name: Allow 'sudo' group to have passwordless sudo | |
lineinfile: | |
dest: /etc/sudoers | |
state: present | |
regexp: '^%sudo' | |
line: '%sudo ALL=(ALL) NOPASSWD: ALL' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment