| | |
| | | tags: |
| | | - aws_infrastructure_deployment |
| | | - provision_cf_template |
| | | register: cloudformation_out |
| | | register: cloudformation_out_s3 |
| | | until: >- |
| | | cloudformation_out is succeeded |
| | | or ( |
| | |
| | | when: stat_template.stat.size > 51200 |
| | | ignore_errors: yes |
| | | |
| | | # We cannot have the same name for the register because the skipped task is always succeeded. |
| | | # We write back to cloudformation_out if it used the s3 method: |
| | | - name: Set fact cloudformation_out |
| | | set_fact: |
| | | cloudformation_out: "{{ cloudformation_out_s3 }}" |
| | | when: |
| | | - stat_template.stat.size > 51200 |
| | | |
| | | - name: debug cloudformation |
| | | debug: |
| | | var: cloudformation_out |