Playbook to get all the container s ARN s in my AWS ECS cluster

0 votes
I want to write a task that gets all the container ARN'S in my AWS ECS cluster. How do I do it?
Apr 9, 2019 in Ansible by Haseeb
743 views

1 answer to this question.

0 votes

Hey @haseeb, you could try something like this:

- name: List jenkins cluster container instances
  command: "aws ecs list-container-instances --cluster jenkins"
  register: jenkins_containers

- debug: var=jenkins_containers.stdout
answered Apr 9, 2019 by Anshul

Related Questions In Ansible

0 votes
1 answer

Playbook to get my current IP - Ansible and AWS

Hey Komal, that's pretty simple. Try this: - ...READ MORE

answered Mar 24, 2019 in Ansible by Aarohi
1,094 views
0 votes
1 answer

How to configure the Nginx server in AWS with Ansible Playbook?

Hi@akhtar, To configure the Nginx server in AWS, ...READ MORE

answered Oct 12, 2020 in Ansible by MD
• 95,440 points
2,787 views
0 votes
1 answer
0 votes
1 answer

How to list down all the hosts in Ansible?

Hi@akhtar, You can use the option --list-hosts. It will ...READ MORE

answered Jul 28, 2020 in Ansible by MD
• 95,440 points
43,376 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,493 views
+2 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Hey I'm trying to execute a playbook but I get the following error:

Hey, you have a syntax error as ...READ MORE

answered Mar 26, 2019 in Ansible by Kalgi
• 52,360 points
565 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP