Skip to content

Commit

Permalink
Consul: Make sure the python3-pip package are present on controlling …
Browse files Browse the repository at this point in the history
…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."

#252
  • Loading branch information
vitabaks committed Feb 7, 2023
1 parent 4895da2 commit 12812fb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions roles/consul/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 12812fb

Please sign in to comment.