Update to ansible 2.0.0.1, broken, cannot run ansible-playbook anymore

Hi,

I was running ansible 1.9 fine until updating to ansible-2.0.0.1.tar.gz, now I got following error:

ERROR! A malformed block was encountered.

The error appears to have been in ‘/tmp/debug.yml’: line 1, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  • hosts: ‘*’
    ^ here

$ cat /tmp/debug.yml

  • hosts: ‘*’
    tasks:
    setup

What could I am missing here?

Thank you.

  • j

this is invalid, it did not ‘work’ in 1.9, it just got ignored:

tasks:
setup

must be written:

tasks:

  • setup:

Thanks Brian, all good.

Kind regards,

  • j