When using HTTP/2 for git operations, git's use of libcurl can result
in deadlocks with libcurl 7.84-8.4 as libcurl may call the read
callback multiple times after EOF.
@see https://lore.kernel.org/git/CAGE_+C5u9H8m5faK1vXKk6QTyjcHgKHqxOZy5ptzsYbF_0yrCQ@mail.gmail.com/
@see https://curl.se/mail/lib-2023-11/0017.html
@see https://github.com/curl/curl/pull/12363
Fixes #1532
Change-Id: I1236d7bc8480c2b8316891b2572ce93f999ff4e4
repo: 'deb http://deb.debian.org/debian bookworm-backports main'
- ansible.builtin.apt:
upgrade: 'yes'
+ - name: Use HTTP/1.1 with git HTTP operations
+ community.general.git_config:
+ file: '/etc/gitconfig'
+ name: 'http.version'
+ value: 'HTTP/1.1'