Never had to deal with Amazon stuff but here my 2 cents: your first method 
fails because of wrong indentation:

On Thursday, June 18, 2015 at 6:24:22 PM UTC+3, Louis Borsu wrote:
>
> Hi, 
>
> I would like to loop on items in an inventory group with the module Route53
>
> I tried to methods but both failed, if you have any idea, it would be 
> really appreciated :D
>
> *Method 1:*
>
>> - route53:
>>     command: create
>>     overwrite: True
>>     zone: "{{ slaves_dns_zone }}"
>>     record: "{{ item | regex_replace('/.', '-') }}.{{ slaves_dns_record 
>> }}"
>>     type: PTR
>>     ttl: 300
>>     value: "{{ item }}"
>>     with_items: groups['slaves-private']
>
>
> msg: unsupported parameter for module: with_items 
>
>
You need to outdent the with_items clause, otherwise you state it is part 
of route53 arguments. Here a working example:

- name: important basic packages
  apt:
    name: "{{ item }}"
    state: present
  with_items:
    - strace
    - screen
    - less
    - man-db
    - wget


HTH,
-Y

-- 
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/7402be7f-d215-4ad0-82e3-1092764682c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to