Created
May 31, 2017 11:39
-
-
Save njh/79e2962f2d3bf882acf96f0ea94e43c0 to your computer and use it in GitHub Desktop.
Disable 'Defaults requiretty' in sudo on CentOS using Ansible
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
--- | |
tasks: | |
- name: disable requiretty in sudo, so that syncronise works | |
lineinfile: | |
dest: /etc/sudoers | |
regexp: '^(Defaults\s+requiretty)$' | |
line: '# \1' | |
backrefs: yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment