timorunge / ansible-freeipa-server

FreeIPA Identity Management Server provisioning.
BSD 3-Clause "New" or "Revised" License
18 stars 7 forks source link

Unable to find any of pip3 to use. pip needs to be installed when use ansible 2.12 #16

Open patsevanton opened 2 years ago

patsevanton commented 2 years ago

Hello! Thanks for role! I try install and get error

Playbook

  - hosts: freeipa
    become: true
    roles:
      - timorunge.freeipa_server

Inventory

all:
  children:
    freeipa:
      hosts:
        "freeipa":
          ansible_host: "xxxxx"
  vars:
    ansible_user:  ubuntu

Error

TASK [timorunge.freeipa_server : Install FreeIPA server pip dependencies] **************************************************************************************************************
Wednesday 30 March 2022  12:16:51 +0600 (0:03:05.462)       0:04:06.222 *******
FAILED - RETRYING: [freeipa]: Install FreeIPA server pip dependencies (3 retries left).
FAILED - RETRYING: [freeipa]: Install FreeIPA server pip dependencies (2 retries left).
FAILED - RETRYING: [freeipa]: Install FreeIPA server pip dependencies (1 retries left).
fatal: [freeipa]: FAILED! => changed=false
  attempts: 3
  msg: Unable to find any of pip3 to use.  pip needs to be installed.

Version

ansible [core 2.12.2]
  python version = 3.8.10 (default, Nov 26 2021, 20:14:08) [GCC 9.3.0]

Server where ansible

cat /etc/*release*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"

Remote server

cat /etc/*release*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"