I have a playbook with several roles to be performed on AWS instances. I 
want to get the list of all aws resource actions used on the ec2 modules so 
i can create specific IAM role with those permisions. But i'm unable to get 
the specified output as per the documentation. I have done the changes as 
per the documentaion. Modified the ansible.cfg to

[defaults]
callback_whitelist = aws_resource_actions

Also on the playbook i have given the group as follow- name: Get instance 
details and attach ebs volumes

  hosts: some hosts
  module_defaults:
    group/aws:
      debug_botocore_endpoint_logs: True
  gather_facts: yes
  roles:
    - a_role

Also i have added modified the ec2 task also to add this

- name : Create EBS one
  ec2_vol:
    region: "{{ region }}"
    instance: "{{ item}}"
    device_name: "{{ device }}"
    volume_type: "{{ vol_type }}"
    volume_size: "{{ vol_size }}"
    delete_on_termination: yes
    encrypted: yes
    debug_botocore_endpoint_logs: yes
    tags:
      Name: "{{ vol_name }}"      
  register: EBSdetails

Can anyone point me out what i have missed?

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c2efa602-587c-489d-a746-99cf1f5bca8e%40googlegroups.com.

Reply via email to