Browse Source

Remove requiretty from sudoers to actually make pipelining work

Some systems (e.g. CentOS on Azure) have requiretty in sudoers which makes
pipelining fail.
pull/705/head
Alexander Block 8 years ago
parent
commit
7abcf6e0b9
3 changed files with 11 additions and 1 deletions
  1. 2
      cluster.yml
  2. 4
      roles/bootstrap-os/tasks/main.yml
  3. 6
      roles/bootstrap-os/tasks/setup-pipelining.yml

2
cluster.yml

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

4
roles/bootstrap-os/tasks/main.yml

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

6
roles/bootstrap-os/tasks/setup-pipelining.yml

@ -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
Loading…
Cancel
Save