Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin requests to version 2.31.0 in main.yml #12959

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions ansible/roles/vm_set/tasks/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,4 @@
pip: name=docker version=6.1.0 state=forcereinstall executable={{ pip_executable }}
become: yes
environment: "{{ proxy_env | default({}) }}"
# Workaround for '"Error connecting: Error while fetching server API version: Not supported URL scheme http+docker'
# See https://github.com/docker/docker-py/issues/3256
- name: Remove old requests package >=2.32.0
pip: name=requests state=absent executable={{ pip_executable }}
become: yes
environment: "{{ proxy_env | default({}) }}"
ignore_errors: yes
- name: Install requests package <2.32.0
pip: name=requests version=2.31.0 state=present executable={{ pip_executable }}
become: yes
environment: "{{ proxy_env | default({}) }}"
when: pip_executable=="pip3"
15 changes: 15 additions & 0 deletions ansible/roles/vm_set/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,21 @@
- include_tasks: docker.yml
when: package_installation|bool

- name: Update python3 packages
block:
# Workaround for '"Error connecting: Error while fetching server API version: Not supported URL scheme http+docker'
# See https://github.com/docker/docker-py/issues/3256
- name: Remove old requests package >=2.32.0
pip: name=requests state=absent executable={{ pip_executable }}
become: yes
environment: "{{ proxy_env | default({}) }}"
ignore_errors: yes
- name: Install requests package <2.32.0
pip: name=requests version=2.31.0 state=present executable={{ pip_executable }}
become: yes
environment: "{{ proxy_env | default({}) }}"
when: pip_executable=="pip3"

- name: Ensure {{ ansible_user }} in docker,sudo group
user:
name: "{{ ansible_user }}"
Expand Down
Loading