Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

ERROR: problem running /vagrant/hosts --list ([Errno 8] Exec format error)

Estou tendo problemas com o arquivo Hosts

Quando digito ansible wordpress -u vagrant --private-key .vagrant/machines/wordpress/virtualbox/private_key -i hosts -m shell -a "echo Helo World"

Recebo: [WARNING]: Unable to parse /home/vagrant/hosts as an inventory source [WARNING]: No inventory was parsed, only implicit localhost is available [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' [WARNING]: Could not match supplied host pattern, ignoring: wordpress

Se eu coloco /vagrant antes de hosts: ansible wordpress -u vagrant --private-key .vagrant/machines/wordpress/virtualbox/private_key -i /vagrant/hosts -m shell -a "echo Helo World"

Recebo isso: 10.10.0.100 | UNREACHABLE! => { "changed": false, "msg": "Failed to connect to the host via ssh: no such identity: /home/vagrant/.vagrant/machines/wordpress/virtualbox/private_key: No such file or directory\r\nPermission denied (publickey,password).", "unreachable": true

Podem indicar onde estou errando?

2 respostas
solução!

Oi, Pedro, tudo bem?

Esse erro UNREACHABLE o instrutor ajuda a resolver nessa lição: https://cursos.alura.com.br/course/infraestrutura-como-codigo-com-ansible/task/46792

Espero ter te ajudado!

Obrigado.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software