diff --git a/ansible/devspace.yml b/ansible/devspace.yml index 494ef83b6..27966b044 100644 --- a/ansible/devspace.yml +++ b/ansible/devspace.yml @@ -1,5 +1,9 @@ --- # Playbook for provisioning Devspace +# +- include: ttyfix.yml + vars: + tty_fix_hosts: devspace - hosts: devspace diff --git a/ansible/ttyfix.yml b/ansible/ttyfix.yml new file mode 100644 index 000000000..a2f92d697 --- /dev/null +++ b/ansible/ttyfix.yml @@ -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"