Skip to content

Commit

Permalink
Fix require: tty issue (omegh-118)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoore committed Sep 21, 2016
1 parent 69e851d commit 0f52e21
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ansible/devspace.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
---
# Playbook for provisioning Devspace
#
- include: ttyfix.yml
vars:
tty_fix_hosts: devspace

- hosts: devspace

Expand Down
12 changes: 12 additions & 0 deletions ansible/ttyfix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
- hosts: "{{ tty_fix_hosts }}"
remote_user: centos
become: yes
become_user: root

vars:
ansible_ssh_pipelining: no

tasks:
- name: disable requiretty in /etc/sudoers
replace: regexp="^Defaults\s+requiretty$" replace="# Defaults requiretty" dest="/etc/sudoers"

0 comments on commit 0f52e21

Please sign in to comment.