Olá. Estou a mensagem acima. Vou anexar os códigos. Sendo que estou usando Windows. mas instalado o bash Ubunto e montei a maquina wordpress no virtual box. Ou seja. Meu ansible esta na maquina Ubunto fora do virtual Box e a maquina wordpress no virtual.
vagrantfile
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: "172.17.177.40"
end
end
Hosts
[wordpress]
172.17.177.40
Chave Criada no servidor Wordpress (Virtual Box)
vagrant@vagrant-ubuntu-trusty-64:~$ cd .ssh/
vagrant@vagrant-ubuntu-trusty-64:~/.ssh$ ls -l
total 4
-rw------- 1 vagrant vagrant 868 May 7 23:12 authorized_keys
vagrant@vagrant-ubuntu-trusty-64:~/.ssh$ cat authorized_keys
# CLOUD_IMG: This file was created/modified by the Cloud Image build process
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC1kDkp4NQHgoD++r4lZWR2SKl3QUttEINced0cIE5amRRHhGGQNZnXMkPe0JV1f35mWx33qyfzPybF1zHuDsfyF5bRwiZih3pGDm6oQ++lZBnZpHKKauHNII+xaprLHnosZLThLeA71dciasOFPnHzbW5TERQiTu9HeCQ90pL9kmGGP/0lWkbir1iPhpeq/DiWOj/oo4dGSx3vvrcXV6MZXCka2/ayrfgs+cVVdjiV+md7M2ubqhnsNMkt/1rSdlnzgvxUUV9yVMij02FG1m2Pe0O4eyZVVUfJTj6v9Ag3o+HJa4HASxGashrb50o2uTYSaGEa281toSaNzANUdwgP vagrant
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCtz496qrshQ2Vr8zKqRilcOxAcFPWTiS3miKnC5EMqDzSdoZ/xPnlTSNDPUD9ZWCzx07I9iqpV+rJL6jIGa5xuFaWfOBIqyg70C0Vpfh8HxUCuAoz/IxeVcvJw/6YwhyDrMc+tyAMdceBI6Tza0a3CLFrI5ph89saPQnJr1wJmbv6/TCiyWilXuEA5RIBN5FKTsRKXil6pS1koRBYOJ0TtDqzdm5XAT56STnol4bmDGkxOtNpxwjFKh1g8xTH76N4jD3tdCDFa5VNVxc4YLb8HT9FaFPY9warNBXRkEfk9c/dyQ1Q3DBQ3xocGg0FaUGTkvPa3C9B6/3MOBO5COxFZ root@LAPTOP-L2H365L7
vagrant@vagrant-ubuntu-trusty-64:~/.ssh$