help needed to install Ansible on MacOS BigSur

Visto 137 veces
Saltar al primer mensaje no leído

Zeynal Hajili

no leída,
2 may 2021, 11:58:572/5/21
a Ansible Project
Hello team,

I am very new to Ansible and i am trying to install Ansible on my MacOS BigSur.

I followed official guide and tried to install it with following logs.

MacBook-Pro:~$ python3 -m pip install --user ansible

Collecting ansible

  Using cached ansible-3.3.0-py3-none-any.whl

Requirement already satisfied: ansible-base<2.11,>=2.10.8 in ./Library/Python/3.8/lib/python/site-packages (from ansible) (2.10.8)

Requirement already satisfied: cryptography in ./Library/Python/3.8/lib/python/site-packages (from ansible-base<2.11,>=2.10.8->ansible) (3.4.7)

Requirement already satisfied: PyYAML in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from ansible-base<2.11,>=2.10.8->ansible) (5.3.1)

Requirement already satisfied: jinja2 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from ansible-base<2.11,>=2.10.8->ansible) (2.11.2)

Requirement already satisfied: packaging in ./Library/Python/3.8/lib/python/site-packages (from ansible-base<2.11,>=2.10.8->ansible) (20.9)

Requirement already satisfied: cffi>=1.12 in ./Library/Python/3.8/lib/python/site-packages (from cryptography->ansible-base<2.11,>=2.10.8->ansible) (1.14.5)

Requirement already satisfied: pycparser in ./Library/Python/3.8/lib/python/site-packages (from cffi>=1.12->cryptography->ansible-base<2.11,>=2.10.8->ansible) (2.20)

Requirement already satisfied: MarkupSafe>=0.23 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from jinja2->ansible-base<2.11,>=2.10.8->ansible) (1.1.1)

Requirement already satisfied: pyparsing>=2.0.2 in ./Library/Python/3.8/lib/python/site-packages (from packaging->ansible-base<2.11,>=2.10.8->ansible) (2.4.7)

Installing collected packages: ansible

Successfully installed ansible-3.3.0


it seems that ansible is already installed ,but i cannot even verify ansible version with ansible --version command.


Could you please let me know if i am doing anything wrong?

Kiran Kumar

no leída,
2 may 2021, 13:29:292/5/21
a ansible...@googlegroups.com
What is error you get ? 

--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c94ae6eb-52f6-4157-a2be-196c80dfbe35n%40googlegroups.com.

Zeynal Hajili

no leída,
2 may 2021, 13:32:222/5/21
a ansible...@googlegroups.com
Hello Kiran,

I am not able to apply any command related to ansible ,basic one is ansible --version 

You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/GkO168MdxX8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAGhW9JuomAuCbHm00BwFmmUKukwBXPBSTnFu2bpMLTPtGX5pSQ%40mail.gmail.com.

f.floimai...@gmail.com

no leída,
2 may 2021, 13:59:122/5/21
a Ansible Project

It's probably not in your path.

Zeynal Hajili

no leída,
2 may 2021, 14:01:182/5/21
a ansible...@googlegroups.com
How can i verify please?

Zeynal Hajili

no leída,
3 may 2021, 16:40:303/5/21
a ansible...@googlegroups.com
hey guys ,

Even when i try to uninstall it i see following

~$ pip uninstall ansible

Found existing installation: ansible 3.3.0

Uninstalling ansible-3.3.0:

  Would remove:

Zeynal Hajili

no leída,
4 may 2021, 4:22:334/5/21
a ansible...@googlegroups.com
team ,

I have solved it by creating symlink to correct path 

 ln -s ~/Library/Python/3.8/bin/ansible /usr/local/bin/ansible

Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos