-
Notifications
You must be signed in to change notification settings - Fork 0
/
ansible.cfg
34 lines (30 loc) · 1.65 KB
/
ansible.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[defaults]
inventory=./hosts
# roles.srv: roles used for the server only
roles_path=./roles:./roles.srv
retry_files_enabled=False
[ssh_connection]
# ANSIBLE_PIPELINING
# "It can result in a very significant performance improvement when enabled. However this conflicts with privilege escalation (become). For example, when using ‘sudo:’ operations you must first disable ‘requiretty’ in /etc/sudoers on all managed hosts, which is why it is disabled by default."
#
# It seemed to work fine on Debian, Fedora, and Ubuntu.
#
# But it was broken on Ubuntu 22.04 control node,
# ansible 2.10.7+merged+base+2.10.8+dfsg-1 or
# ansible 2.10.7+merged+base+2.10.8+dfsg-1ubuntu0.1~esm1.
# When delegating tasks to localhost (!) e.g. the first task in
# roles/sourcejedi.google_chrome (and using become i.e. sudo).
#
# It appears fixed in PPA ansible-core 2.16.6-1ppa~jammy.
#
# Specifically, the task hung:
#
# TASK [sourcejedi.google_chrome : Fetch the current Google signing sub-keys] **********************************************************
# task path: /home/alan-sysop/ansible/roles/sourcejedi.google_chrome/tasks/main-tasks.yml:21
# Using module file /usr/lib/python3/dist-packages/ansible/modules/get_url.py
# Pipelining is enabled.
# <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: alan-sysop
# <127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=grwrmotwkvwdqfxckujabnjxgoyufpum] password:" -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-grwrmotwkvwdqfxckujabnjxgoyufpum ; /usr/bin/python3'"'"' && sleep 0'
#
# In addition to the frustrating hang bug, this shows the "local" connection plugin was affected by the setting for the "ssh" plugin :-(.
#pipelining = True