Friday, December 9, 2016

Ansible 2.2 with_items Deprecation

Prior to 2.2, this worked
- name: do something
# do something here
with_items: ec2.instances

However, this has been deprecated. Changelog item: "with_ 'bare variable' handling, now loop items must always be templated {{ }} or they will be considered as plain strings"

It's now required to do this:
- name: do something
# do something here
with_items: "{{ ec2.instances }}"


References:

1 comment:

  1. Wynn Las Vegas and Encore casino - JT Hub
    Discover Wynn Las Vegas and Encore casino information 경상북도 출장마사지 for Mac, iOS, Android, Windows 아산 출장안마 Phone and Windows Phones. Get Wynn 충청북도 출장샵 Las 속초 출장마사지 Vegas and Encore casino information 1xbet login

    ReplyDelete