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:
parent
e731130f41
commit
a80cdcf867
3 changed files with 11 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
|||
- hosts: all
|
||||
any_errors_fatal: true
|
||||
gather_facts: false
|
||||
vars:
|
||||
ansible_ssh_pipelining: false
|
||||
roles:
|
||||
- bootstrap-os
|
||||
tags:
|
||||
|
|
|
@ -4,3 +4,5 @@
|
|||
|
||||
- include: bootstrap-coreos.yml
|
||||
when: bootstrap_os == "coreos"
|
||||
|
||||
- include: setup-pipelining.yml
|
||||
|
|
6
roles/bootstrap-os/tasks/setup-pipelining.yml
Normal file
6
roles/bootstrap-os/tasks/setup-pipelining.yml
Normal 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
|
||||
|
Loading…
Reference in a new issue