Remove requiretty from sudoers to actually make pipelining work

Some systems (e.g. CentOS on Azure) have requiretty in sudoers which makes
pipelining fail.
This commit is contained in:
Alexander Block 2016-12-09 10:38:45 +01:00
parent e731130f41
commit a80cdcf867
3 changed files with 11 additions and 1 deletions

View file

@ -2,6 +2,8 @@
- hosts: all
any_errors_fatal: true
gather_facts: false
vars:
ansible_ssh_pipelining: false
roles:
- bootstrap-os
tags:

View file

@ -3,4 +3,6 @@
when: bootstrap_os == "ubuntu"
- include: bootstrap-coreos.yml
when: bootstrap_os == "coreos"
when: bootstrap_os == "coreos"
- include: setup-pipelining.yml

View file

@ -0,0 +1,6 @@
---
# Remove requiretty to make ssh pipelining work
- name: Remove require tty
lineinfile: regexp="^\w+\s+requiretty" dest=/etc/sudoers state=absent