I fixed it by adding *update_cache* parameter to update the repo first
before installing my packages
[image: Capture.PNG]
Thank you for the tips
On Monday, August 8, 2022 at 11:11:52 AM UTC+2 NURUDEEN KAMILU wrote:
> Thank you for this
> I just tried with Ubuntu 18 and also python3 packages.
> Here is the error I have:
>
>
> *fatal: [3.121.159.145]: FAILED! => {"changed": false, "msg": "No package
> matching 'python3-pip' is available"}*
> On Monday, August 8, 2022 at 6:26:24 AM UTC+2 [email protected] wrote:
>
>> This is correct. There is no package called python.
>> Probably your Ubuntu is recent and the package you want is python3.
>> Same for the related packages.
>>
>> On Mon, 8 Aug 2022 at 02:39, NURUDEEN KAMILU <[email protected]>
>> wrote:
>>
>>> Hello,
>>>
>>> I tried installing python dependencies on ubuntu using ansible. However,
>>> I got this error
>>>
>>> *fatal: [18.157.79.199]: FAILED! => {"changed": false, "msg": "No
>>> package matching 'python' is available"}*
>>> Below is a screenshot of my play:
>>>
>>> [image: Capture.PNG]
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Ansible Project" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/2ede40ee-ff3b-40a8-bff6-a15c8e993068n%40googlegroups.com
>>>
>>> <https://groups.google.com/d/msgid/ansible-project/2ede40ee-ff3b-40a8-bff6-a15c8e993068n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> Sent from Gmail Mobile
>>
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/14fc5e87-f31b-41fc-be14-1948eeadb8efn%40googlegroups.com.