| | |
| | | - set_fact: |
| | | skip_packer_tasks: false |
| | | |
| | | - when: |
| | | - amifacts is succeeded |
| | | - amifacts.images | length > 0 |
| | | - when: amifacts.images | d([]) | length > 0 |
| | | include_tasks: select_custom_image.yml |
| | | |
| | | - name: Get custom AMI using the provided filter |
| | |
| | | owner: self |
| | | filters: |
| | | name: "*{{ custom_image_filter }}*" |
| | | register: amifacts |
| | | register: amifacts2 |
| | | |
| | | - when: |
| | | - amifacts is succeeded |
| | | - amifacts.images | length > 0 |
| | | - set_fact: |
| | | amifacts: "{{ amifacts2 }}" |
| | | when: amifacts2 is succeeded |
| | | |
| | | - when: amifacts.images | d([]) | length > 0 |
| | | include_tasks: select_custom_image.yml |