Estou usando o ansible v.2.5.1.
Ao executar o playbook
---
- hosts: all
tasks:
- apt:
name: php5
state: latest
become: yes
pego a seguinte mensagem de erro:
lamps@pc:~/dev/ansible$ ansible-playbook provisioning.yml -u vagrant -i hosts --private-key .vagrant/machines/wordpress/virtualbox/private_key
ERROR! Syntax Error while loading YAML.
did not find expected '-' indicator
The error appears to have been in '/home/lamps/dev/ansible/provisioning.yml': line 7, column 5, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
state: latest
become: yes
^ here
Tentei colocar o become com hífen ou identado com 1 espaço além do apt, também sem sucesso.