elasticache subnet group

13 views
Skip to first unread message

Eric S

unread,
Jun 2, 2016, 2:01:17 PM6/2/16
to Ansible Project
using the elasticache_subnet_group module and trying to populate the list of subnet ids using a variable but its only populating one of the ids.  Here's the task:
- name: create elasticache subnet group
    elasticache_subnet_group:
      state: present
      name: "{{ Env }}-{{ nameCache }}"
      description: "{{ Env }}-{{ nameCache }}"
      subnets: "{{ item }}"
      region: "{{ aws_reg }}"
    with_items: "{{ subgrpids }}"

and the var is:
subgrpids:
    - <ID>
    - <ID>

But if I list the ids in the task it works properly.

Eric S

unread,
Jun 2, 2016, 2:36:35 PM6/2/16
to Ansible Project
using ansible 2.1
Reply all
Reply to author
Forward
0 new messages