BYOA: use 'user.info' to send output to CF
| | |
| | | |
| | | - name: Exit if cannot list instances using the credentials |
| | | fail: |
| | | msg: "Cannot list instances using the provided credentials" |
| | | msg: "user.info: Cannot list instances using the provided credentials" |
| | | when: '"error" in _raccess' |
| | |
| | | register: _ri |
| | | |
| | | - fail: |
| | | msg: "{{ _ri.instances | length }} instances found in region {{ loop_region }} AWS account." |
| | | msg: "user.info: {{ _ri.instances | length }} instances found in region {{ loop_region }} AWS account." |
| | | when: _ri.instances | length > 0 |