Ola esta aparecendo o seguinte erro na hora de utilizar o comando.
ansible wordpress -u vagrant --private-key .vagrant/machines/wordpress/virtualbox/private_key -i hosts -m shell -a 'echo Hello, World'
Ele apresenta o seguinte erro...
[WARNING]: Unable to parse
/home/vitor/Documentos/Alura/wordpress_com_ansible/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
estou utilizando o Ubunto 22.04, esta instalado o Python3, Ansible, VirtualBox
Arquivo vagrant
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |v|
v.memory = 1024
end
config.vm.define "wordpress" do |m|
m.vm.network "private_network", ip: "192.168.56.11"
end
end
Host
[wordpress]
192.168.56.11