[ansible-project] Ansible : Add multiple security group on ec2

2018-04-14 Thread Ankur Gupta
I have one ec2 instance(*instance_A)*, and I have to create one more new ec2 instance(*instance_B*) using instance_A ec2_fact. to get facts of ec2 I am using the *ec2_instance_facts* module.on *instance_A* have multiple security groups which I want to add on *instance_B* on creation time. I

[ansible-project] Re: Ansible - roles and tasks execution handling in playbook

2018-05-07 Thread Ankur Gupta
both serial and max_fail_percentage do not work for this case. because I need to skip the remaining roles. On Tuesday, May 8, 2018 at 7:52:18 AM UTC+5:30, Edmund Cheng wrote: > > Did you maybe try with serial and max_fail_percentage? > > On Tuesday, May 8, 2018 at 12:36:53 AM

[ansible-project] Ansible - roles and tasks execution handling in playbook

2018-05-07 Thread Ankur Gupta
I am working on ansible exception handling tasks and stuck in an ansible tasks execution handling problem where I need your guide to come over. I have 2 system host group *system_a* and *system_b* and I develop 6 roles and each role have multiple tasks.I execute 2 roles on *syste_a* and

[ansible-project] Ansible Json filter

2018-05-24 Thread Ankur Gupta
Hello All, I have a situation where i am trying to remove key: value from json output. but i am not getting expected result. Please help me what I am doing wrong here? "get_ec2_id.instances[0].tags": { "Name": "test-db-system-2", "aws:cloudformation:logical-id": "DBInstance",