Skip to content

Instantly share code, notes, and snippets.

View hoantp's full-sized avatar
🎯
Focusing

Hoan Tran hoantp

🎯
Focusing
View GitHub Profile
@hoantp
hoantp / ansible-playbook.yml
Created March 25, 2019 08:30 — forked from njh/ansible-playbook.yml
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