commit | author | age | ||
529514 | 1 | --- |
GC | 2 | - name: Step 001.1 Deploy Infrastructure |
3 | hosts: localhost | |
4 | connection: local | |
5 | gather_facts: false | |
6 | become: false | |
7 | tags: | |
8 | - step001 | |
9 | - step001.1 | |
10 | - deploy_infrastructure | |
11 | tasks: | |
12 | - name: Test aws command | |
dcf588 | 13 | shell: command -v aws |
529514 | 14 | failed_when: false |
GC | 15 | changed_when: false |
16 | register: raws | |
17 | ||
18 | - name: Fail if AWS command CLI if not available | |
19 | fail: | |
20 | msg: AWS command not found in PATH. | |
21 | when: raws.rc != 0 |