Patrick T. Rutledge III
2020-03-04 b473076b87787ed126600626c2019f82005a4061
commit | author | age
aeb735 1 ---
GC 2 # This file is the default playbook for common actions.
3 # You should implement those actions in your config if you
4 # need a specific process.
5
6 - import_playbook: setup_runtime.yml
7
8 - name: Run stop/start/status/... actions
9   hosts: localhost
10   connection: local
11   gather_facts: False
12   become: no
13   tasks:
14     - fail:
e04576 15         msg: "guid and env_type must be defined"
GC 16       when: >-
17         guid is not defined or guid == ''
18         or env_type is not defined or env_type == ''
19
20     - when: project_tag is not defined
21       set_fact:
22         project_tag: "{{ env_type }}-{{ guid }}"
aeb735 23
GC 24     - fail:
25         msg: "ACTION is not defined"
26       when: ACTION is not defined
27
d84223 28     - when: >-
GC 29         guid is not defined
30         or guid == ''
31         or guid == '*'
32       fail:
33         msg: variable 'guid' must be defined and not empty
34
699c28 35     - when: cloud_provider == 'ec2'
GC 36       include_tasks: lifecycle_ec2.yml
e6c7d8 37
d84223 38     - when: cloud_provider == 'osp'
699c28 39       include_tasks: lifecycle_osp.yml