Skip to content

Instantly share code, notes, and snippets.

@njh
Created May 31, 2017 11:39
Show Gist options
  • Save njh/79e2962f2d3bf882acf96f0ea94e43c0 to your computer and use it in GitHub Desktop.
Save njh/79e2962f2d3bf882acf96f0ea94e43c0 to your computer and use it in GitHub Desktop.
Disable 'Defaults requiretty' in sudo on CentOS using Ansible
---
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