2
respostas

Erro ao executar ansible-playbook /vagrant/configs/ansible/hosts /vagrant/configs/ansible/playbook.yml

[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' ERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: JSON: No JSON object could be decoded

Syntax Error while loading YAML. did not find expected

The error appears to be in '/vagrant/configs/ansible/hosts': line 2, column 1, but may be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

[mysqlserver] 192.168.1.202 ^ here

2 respostas

Deu certo aqui, faltou o -i

Olá, Jefferson. Tudo bem?

Que bom que conseguiu resolver o problema. É normal a gente esquecer um ou outro argumento nesses comando mais longos.

Bons estudos!