Hii
You are overcomplicating things by first doing a stat on /usr/bin/pip.
Besides that, the existence of that path is a very fragile way of detecting
if the python3-package is installed.
If you only want to install something if it is not installed already, then
that is just what the apt module wi
Task: checking if pip is installed or not, if not then installing pip.
playbook.yml
---
- name: Install pip on remote linux servers - Only Debian/ubuntu based will
work
hosts: ubuntu-servers
gather_facts: false
become: true
vars:
ansible_user: demouser
tasks:
- name: check if pip is installed or