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