Skip to content

Instantly share code, notes, and snippets.

@markuman
Created July 9, 2021 08:06
Show Gist options
  • Save markuman/bad4ef332c9b41322328cf847bb2594d to your computer and use it in GitHub Desktop.
Save markuman/bad4ef332c9b41322328cf847bb2594d to your computer and use it in GitHub Desktop.

playbook

---
- hosts: localhost
  connection: local

  tasks:
    - name: facts about none-existing service
      community.aws.ecs_service_info:
        cluster: cluster-div
        service: bla
        details: true
      register: output

    - debug: msg ="{{ output }}"

output

TASK [facts about none-existing service] ****************************************************************************************************************************************************************************
ok: [localhost]

TASK [debug] ********************************************************************************************************************************************************************************************************
ok: [localhost] => {
    "msg": "Hello world!"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment