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?