include + with_items again

Hello!

Yesterday I’ve update my ansible from 1.3 to 1.5 and it’s broke all my playbooks.

My playbooks looks like:

create.yml:

  • name: Recreate instance
    hosts: localhost
    gather_facts: False
    vars_files:

  • vars/main.yml

  • vars/staging.yml
    tasks:

  • include: tasks/create.yml
    with_flattened:

  • ‘{{ staging }}’

tasks/create.yml:

So “broke all my playbooks” isn’t really helpful.

You’ll need to share what kind of problem you’re actually experiencing, including output where relevant.

include: + with_items was deprecated in 1.4 and removed in 1.5, yes It will break all your playbooks that use it. (broke mine too) but it is a planned breakage.

I rewrote my playbooks like

tasks:

  • { include: tasks/create.yml, items: ‘{{ nodes }}’ }