Im trying to run playbook, 

 ---
 - hosts:group1
   user:user1
   sudo:yes
   gather_facts:yes

tasks:
 - name: ensure update
   apt:upgrade=full apt:update_cache=yes


How I`m trying to run.


 sudo ansible-playbook -i /etc/ansible/hosts test1.yml


But I have an error.

ERROR: Syntax Error while loading YAML script, test1.yml
Note: The error may actually appear before this position: line 7, column 6
tasks:
       ^

I asked about this issue in Github 
https://github.com/ansible/ansible/issues/12635 and I`ve got an answer, but 
it`s not working too. I have the same error message in the same 
position.Tried to use other space combinations in playbook, but result 
didn`t change. Help me, please.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/948fc0ac-7836-4296-a396-7e04aa19902a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to