mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 09:39:12 +03:00
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:
@@ -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:
|
||||||
|
|||||||
@@ -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
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
|
||||||
|
|
||||||
Reference in New Issue
Block a user