Ansible instalado no Mac com mensagem de sucesso, mas não encontrado

1

Eu tenho tentado instalar ansible de muito tempo. Está dando a mensagem do sucesso quando o uso abaixo do comando.

Anupams-MacBook-Pro-2:bin anupamsri$ sudo pip install ansible  

The directory /Users/anupamsri/Library/Caches/pip/http or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

The directory /Users/anupamsri/Library/Caches/pip or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

Collecting ansible Downloading ansible-2.4.3.0.tar.gz (6.5MB)
100% |████████████████████████████████| 6.5MB 200kB/s
Requirement already satisfied: jinja2 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from ansible)
Requirement already satisfied: PyYAML in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from ansible)
Requirement already satisfied: paramiko in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from ansible)
Requirement already satisfied: cryptography in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from ansible)
Requirement already satisfied: setuptools in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from ansible)
Requirement already satisfied: MarkupSafe>=0.23 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from jinja2->ansible)
Requirement already satisfied: pyasn1>=0.1.7 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from paramiko->ansible)
Requirement already satisfied: bcrypt>=3.1.3 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from paramiko->ansible)
Requirement already satisfied: pynacl>=1.0.1 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from paramiko->ansible)
Requirement already satisfied: six>=1.4.1 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from cryptography->ansible)
Requirement already satisfied: cffi>=1.7; platform_python_implementation != "PyPy" in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from cryptography->ansible)
Requirement already satisfied: enum34; python_version < "3" in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from cryptography->ansible)
Requirement already satisfied: asn1crypto>=0.21.0 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from cryptography->ansible)
Requirement already satisfied: idna>=2.1 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from cryptography->ansible)
Requirement already satisfied: ipaddress; python_version < "3" in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from cryptography->ansible)
Requirement already satisfied: pycparser in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from cffi>=1.7; platform_python_implementation != "PyPy"->cryptography->ansible)
Installing collected packages: ansible
Running setup.py install for ansible ... done
Successfully installed ansible-2.4.3.0

=========================================

Mas quando eu verifico uma versão ansiosa após ela não ser encontrada. Eu também usei a opção sudo -H mas o mesmo resultado.

Eu também não vejo arquivos .ansible em nenhum lugar do sistema. Por favor, ajude como instalar isso, porque eu tentei instalar brew também, mas sem sorte.

Anupams-MacBook-Pro-2: bin anupamsri $ ansible --version -bash: ansible: comando não encontrado

    
por user2187367 09.03.2018 / 19:51

1 resposta

0

A causa mais comum disso, se você está instalando através de pip ou brew , é algo que não está no PATH . A segunda resposta aqui deve oferecer algumas dicas sobre isso, se esse for realmente o problema: link

    
por 30.09.2018 / 07:17