Skip to content

Commit a9c403e

Browse files
committed
Forcefully use pymongo from packages on Debian 10
1 parent 695e582 commit a9c403e

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

tasks/install.debian.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@
9797
notify:
9898
- reload systemd
9999

100+
# workaround for the issue with pip idempotency
101+
- name: Forcefully set mongodb_pymongo_from_pip to true on Debian 10
102+
set_fact:
103+
mongodb_pymongo_from_pip: false
104+
when:
105+
- ansible_distribution == 'Debian'
106+
- ansible_distribution_release == 'buster'
107+
100108
- name: Install PyMongo package
101109
apt:
102110
name: python-pymongo
@@ -115,13 +123,6 @@
115123
pkg:
116124
- python-setuptools
117125
when: mongodb_pymongo_from_pip | bool
118-
119-
- name: Upgrade pip to the newer version
120-
pip:
121-
name: pip
122-
state: present
123-
version: "20.3.4"
124-
when: mongodb_pymongo_from_pip | bool
125126

126127
- name: Install PyMongo from PIP
127128
pip:

0 commit comments

Comments
 (0)