[ansible-project] Re: ec2_ami launch_permissions to multiple accounts

2017-04-20 Thread Suporter
*userid seems to need square brackets, add them up and try* On Thursday, April 20, 2017 at 1:46:05 PM UTC+5:30, Shmulik Alfandari wrote: > > Hi, > > I am creating AMI in AWS using ec2_ami module. I need to create the AMI > and to give permissions to multiple accounts,however it failed. When I am

[ansible-project] Re: ec2_ami launch_permissions to multiple accounts

2017-04-20 Thread Shmulik Alfandari
Thanks for the answer. I've done it but I got an error: *# Create AMI* *- name: Create AMI* * local_action:* *module: ec2_ami* *instance_id: i-036c3f075aebfb3ce* *#instance_id: "{{ item.id }}"* *wait: yes* *wait_timeout: 3600* *

[ansible-project] Re: ec2_ami launch_permissions to multiple accounts

2017-04-20 Thread Suporter
*You can use with_items as shown below* *# Create AMI* *- name: Create AMI* * local_action:* *module: ec2_ami* *instance_id: "{{ item.id }}"* *wait: yes* *wait_timeout: 3600* *aws_access_key: "{{ AWSAccessKey }}"* *