Skip to content

Instantly share code, notes, and snippets.

@markuman
Created November 29, 2018 14:36
Show Gist options
  • Save markuman/55a0e63545e384144060f87d271be94d to your computer and use it in GitHub Desktop.
Save markuman/55a0e63545e384144060f87d271be94d to your computer and use it in GitHub Desktop.
---
- hosts: localhost
connection: local
gather_facts: False
tasks:
- name: determine service
ecs_service_facts:
cluster: "my-cluster-test"
service: "some_service"
details: true
register: output
- debug: msg = "{{ item.runningCount }}"
with_items: "{{ output.services }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment