pip needs to be installed

I am getting below error, when I try to pip: name=pip state=latest
TASK [install : Upgrade pip] ***************************************************
fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “Unable to find any of pip2, pip to use. pip needs to be installed.”}
to retry, use: --limit

I am getting below error, when I try to pip: name=pip state=latest
TASK [install : Upgrade pip] ***************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unable to find any of pip2, pip to use. pip needs to be installed."}
        to retry, use: --limit

      Is pip already installed in target machine?

Yes, I am trying to upgrade it. But it is failing.

Yes, I am trying to upgrade it. But it is failing.

Which version of Python do you use on the target machine? Where is pip installed exactly?

Regards
        Racke

python --version
Python 2.7.16

whereis pip
pip: /usr/local/bin/pip2.7 /usr/local/bin/pip

python --version
Python 2.7.16
whereis pip
pip: /usr/local/bin/pip2.7 /usr/local/bin/pip

Please try pip: name=pip state=latest executable=/usr/local/bin/pip

Regards
        Racke