Guillaume Coré
2018-11-14 1c72dabdaf626a7d0d84fd13f5de3bd74e0a15a3
ansible/roles/infra-ec2-template-create/tasks/main.yml
@@ -21,6 +21,17 @@
        - cloudformation_out is defined
        - cloudformation_out is failed
    - when: allow_custom_images | d(true) | bool
      block:
        - include_tasks: detect_custom_images.yml
        - name: Regenerate the CloudFormation template because of custom images
          include_role:
            name: "{{ ANSIBLE_REPO_PATH }}/roles/infra-ec2-template-generate"
          when:
            - amifacts is defined
            - amifacts.images | length > 0
    - name: Launch CloudFormation template (local)
      cloudformation:
        aws_access_key: "{{ aws_access_key_id }}"