1
resposta

Erro python3, virtualenv

Ola, deu esse erro pra mim:

jean@Jeans-MacBook-Pro learn-terraform-aws-instance % ansible-playbook playbook.yml -u ubuntu --private-key iac-alura.pem -i hosts.yml [WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details ERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: JSON: Expecting value: line 1 column 1 (char 0)

Syntax Error while loading YAML. did not find expected '-' indicator

The error appears to be in '/Users/jean/learn-terraform-aws-instance/playbook.yml': line 9, column 10, but may be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

     update_cache: yes
     ^ here
1 resposta

Tudo bem Jean?

Para poder te ajudar melhor, você poderia colocar o arquivo todo do playbook aqui? Os arquivos yml são bem chatos em relação a endentação e espaçamentos.