You can use || between two commands as well. If the first command returns exit code != 0, the second command will run.
I.e. which ansible || pip install ansible.
You can use || between two commands as well. If the first command returns exit code != 0, the second command will run.
I.e. which ansible || pip install ansible.