From 12812fba1a37b36f4947da9d1c52dda3269af64d Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Tue, 7 Feb 2023 14:09:47 +0300 Subject: [PATCH] Consul: Make sure the python3-pip package are present on controlling host try installing the python3-pip package if it is missing. fixed: "Unable to find any of pip3 to use. pip needs to be installed." https://github.com/vitabaks/postgresql_cluster/issues/252 --- roles/consul/tasks/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/consul/tasks/main.yml b/roles/consul/tasks/main.yml index 832227c24..1db0e62aa 100644 --- a/roles/consul/tasks/main.yml +++ b/roles/consul/tasks/main.yml @@ -10,6 +10,15 @@ when: - consul_install_dependencies | bool block: + - name: Make sure the python3-pip package are present on controlling host + package: + name: python3-pip + state: present + delegate_to: 127.0.0.1 + run_once: true + ignore_errors: true + when: not is_virtualenv or is_virtualenv == None + - name: Install netaddr dependency on controlling host (with --user) pip: name: netaddr