Re: [ansible-project] issues with ansible looping

2023-09-03 Thread Shivani Arora
> - 2 > - *1* > - - alpha: a > numbers: > - 1 > - *2* > - *2*- - alpha: b > numbers: > - *3* > - 4 > - *3* > - - alpha: b > numbers: > -

Re: [ansible-project] issues with ansible looping

2023-09-02 Thread Shivani Arora
"us-east-1": [ { "byte_match_statement": { "field_to_match": { "single_header": { "name": "accountmoid" }

Re: [ansible-project] issues with ansible looping

2023-09-02 Thread Shivani Arora
- 5c46e3-eu-central-1-1a7c > region: eu-central-1 > > After that, it isn't particularly clear to me how the region is supposed > to play into the following tasks. But perhaps this will help get past the > first problem. > -- > Todd > > > On 9/1/23 2:54

[ansible-project] issues with ansible looping

2023-09-01 Thread Shivani Arora
Hi Team, I'm having issues with looping in Ansible. The background of what I'm trying to do is - I have 2 regions in aws_cloud_regions and their respective waf_blocked_accounts list, which looks like the one below. I want to create regional_account_rules in waf for both the regions (as in

Re: [ansible-project] facing issue with shell module in ansible

2023-08-25 Thread Shivani Arora
arn:aws:wafv2:us-east-1:<>:regional/webacl/QAtest-ALB/11dd2e60-7d87-4827-8be6-6b2660b759ee", "ALB ARN: arn:aws:elasticloadbalancing:us-east-1:<>:loadbalancer/app/Service-QAtest/1c8cde570dbc2c98,", "WAF ARN: arn:aws:wafv2:us-east-1:<>:regional/webacl/QA

Re: [ansible-project] facing issue with shell module in ansible

2023-08-24 Thread Shivani Arora
> Hii > > You left out important information. For instance the output of the > "Display ALB ARNs" debug task. > That is used in your shell command at " for alb_arn in {{ > alb_map_arns[item] }}; do", so that is important. > Post that debug output. &

[ansible-project] facing issue with shell module in ansible

2023-08-24 Thread Shivani Arora
Hi Team, I'm trying the below code to attach region-specific waf to region-specific alb's. But the below code doesn't seem to be working for associating the waf to alb's. The last shell module is having issues, "$alb_arn" value is not getting interpreted and getting the error mentioned below.

Re: [ansible-project] Need help with ansible playbook

2023-01-16 Thread Shivani Arora
com wrote: > Impossible without knowing what your variables look like. Provide those > and we may be able to help > > On Mon, 16 Jan 2023 at 19:35, Shivani Arora wrote: > >> Hi All, >> >> I need help with writing an ansible playbook, where it loops over a few >

[ansible-project] Need help with ansible playbook

2023-01-16 Thread Shivani Arora
Hi All, I need help with writing an ansible playbook, where it loops over a few pods and checks if any pod is not running, does a describe on it, and prints the events (we get when we describe pods). I'm stuck on the 2nd task here, where I can fetch 'stdout' but cannot filter the pod name from

[ansible-project] Async issues in ansible

2022-10-25 Thread Shivani Arora
Hi All, I'm trying to take snapshots of aws ebs volumes using ansible. But my playbook fails when the volume size is big ( >1024 GB) with the below error. Unable to figure out if it is an async issue or if something else causing it. Looking forward to any suggestions or alternatives to achieve

Re: [ansible-project] Append new key value pair with correct indentation in yml file

2022-06-14 Thread Shivani Arora
> Please share the complete playbook and variables. > > > > On Tue, 14 Jun 2022 at 15:35, Shivani Arora wrote: > > > > Hi, > > > > I'm trying to append new key-value pair in the existing yml > (subcluster_to_subnet_map.yml) file using combine. New valu

[ansible-project] Re: Append new key value pair with correct indentation in yml file

2022-06-14 Thread Shivani Arora
Hi Team, Looking forward to any input. Thanks On Tuesday, June 14, 2022 at 7:04:56 PM UTC+5:30 Shivani Arora wrote: > Hi, > > I'm trying to append new key-value pair in the existing yml ( > *subcluster_to_subnet_map.yml) * file using combine. New values are > getting ap

[ansible-project] Append new key value pair with correct indentation in yml file

2022-06-14 Thread Shivani Arora
Hi, I'm trying to append new key-value pair in the existing yml ( *subcluster_to_subnet_map.yml) * file using combine. New values are getting appended correctly but it's getting added without spaces. I need help with adding 2 spaces in starting so that the indentation is maintained. Please su

[ansible-project] Assert in ansible playbook

2022-05-31 Thread Shivani Arora
aybook exits if input validation is failed. Thanks, Shivani -- 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...@googl

Re: [ansible-project] Passing json in shell module in ansible

2022-02-23 Thread Shivani Arora
ss this in shell module within ansible? Thanks On Wednesday, February 23, 2022 at 11:02:58 PM UTC+5:30 dick@geant.org wrote: > Can you confirm that the exact same command (without single quotes around > it) actually works from an interactive shell? > > On Wed, 23 Feb 2022 at 18:13,

[ansible-project] Passing json in shell module in ansible

2022-02-23 Thread Shivani Arora
Hi All, I need help with passing JSON in the shell module in ansible. *Playbook - * - hosts: localhost name: refresh asg connection: local gather_facts: True tasks: - name: refresh instances shell: 'aws autoscaling start-instance-refresh --region=us-east-1 --auto-scaling-group-na

[ansible-project] Passing json in shell module in ansible

2022-02-23 Thread Shivani Arora
Hi All, I need help with passing JSON in the shell module in ansible. *Playbook - * - hosts: localhost name: refresh asg connection: local gather_facts: True tasks: - name: refresh instances shell: 'aws autoscaling start-instance-refresh --region=us-east-1 --auto-scaling-group-na

[ansible-project] Passing json in shell module in ansible

2022-02-23 Thread Shivani Arora
Hi All, I need help with passing JSON in the shell module in ansible. *Playbook - * - hosts: localhost name: refresh asg connection: local gather_facts: True tasks: - name: refresh instances shell: 'aws autoscaling start-instance-refresh --region=us-east-1 --auto-scaling-group-na

[ansible-project] Passing json in shell module in ansible

2022-02-23 Thread Shivani Arora
Hi All, I need help with passing JSON in the shell module in ansible. *Playbook - * - hosts: localhost name: refresh asg connection: local gather_facts: True tasks: - name: refresh instances shell: 'aws autoscaling start-instance-refresh --region=us-east-1 --auto-scaling-group-na

[ansible-project] Replace launch config with launch template using ansible

2022-02-16 Thread Shivani Arora
Hi All, I'm using aws launch configurations with autoscaling groups to launch ec2 instances using ansible playbooks. I have to migrate the existing instances to use a launch template instead of a launch configuration in a rolling fashion. Can anyone suggest what could be the approach for this i

[ansible-project] Re: Playbook error - ansibleundefinedvariable 'str object' has no attribute 'device_name'

2022-02-02 Thread Shivani Arora
Hi All, Looking for suggestions for above query. Thanks On Wednesday, February 2, 2022 at 4:52:35 PM UTC+5:30 Shivani Arora wrote: > Hi, > > I'm trying to create aws launch template using ansible module - " > community.aws.ec2_launch_template". I have different ty

[ansible-project] Playbook error - ansibleundefinedvariable 'str object' has no attribute 'device_name'

2022-02-02 Thread Shivani Arora
Hi, I'm trying to create aws launch template using ansible module - " community.aws.ec2_launch_template". I have different types of nodes and want to map different volumes (according to node type) in the launch template. For Core node - I'm trying to map 2 volumes (sdf and sdh) for which I'm

Re: [ansible-project] Error while using lambda_facts module

2021-12-03 Thread Shivani Arora
ld > start with a newer ansible version. > > What does the playbook look like? > And also, did your playbook work before and started failing? Or has it > never worked? > > > > On Fri, 3 Dec 2021 at 07:51, Shivani Arora wrote: > > > > -bash-4.2$ ansible --version

Re: [ansible-project] Error while using lambda_facts module

2021-12-02 Thread Shivani Arora
e location = /usr/bin/ansible python version = 2.7.5 (default, Oct 30 2018, 23:45:53) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] On Friday, December 3, 2021 at 12:14:13 PM UTC+5:30 dick@geant.org wrote: > What is the output of 'ansible --version' ? > > On Fri, 3 Dec 2021 a

[ansible-project] Error while using lambda_facts module

2021-12-02 Thread Shivani Arora
er:/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/lambda_facts.py\", line 389, in main\nAttributeError: 'module' object has no attribute 'config_details'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/st

Re: [ansible-project] open source

2021-05-27 Thread Shivani Chaudhary
Thank you so much On Thu, May 27, 2021 at 2:23 PM Abhijeet Kasurde wrote: > Hi Shivani, > > Welcome to the community. > > There are a lot of ways you can contribute to. This is true for Ansible > project as well as every Open Source Project. > > For example, > 1. J

[ansible-project] open source

2021-05-27 Thread Shivani Chaudhary
Hello everyone, I want to start my journey with open source and right now I am taking a devops course and I want to start contributing to the community while learning but there are so many thing happening in the community i feel a little overwhelmed with the information and I don't know where to

[ansible-project] ec2 asg does not spin or replace instances when existing auto scaling group is modified with new launch configuration

2020-02-07 Thread shivani
Hi I am facing an issue with ec2_asg module when I use target group arn it does not spin or replace instances. I I use classic load balancer it works fine replaces the instances. When new asg is created it spins up the instances. If existing asg is modified to use new launch configuration then i