forked from redhat-cop/agnosticd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_runtime.yml
40 lines (35 loc) · 984 Bytes
/
setup_runtime.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
- name: Step 0000 Setup runtime
hosts: localhost
connection: local
gather_facts: false
become: false
tasks:
- debug:
msg: "Warning: ANSIBLE_REPO_PATH variable is deprecated, you don't have to use it anymore."
when: ANSIBLE_REPO_PATH is defined
- name: Ensure cloud provider is supported
vars:
agnosticd_cloud_providers:
- ec2
- azure
- osp
- gcp
- ibm
- equinix_metal
- vmc
- openshift_cnv
- none
- test
- vmware_ibm
- multi
- shared_openshift
assert:
that: cloud_provider in agnosticd_cloud_providers
msg: "Cloud provider {{ cloud_provider }} is not supported."
- import_playbook: setup_output_dir.yml
# include global vars from the config
- import_playbook: include_vars.yml
# Load galaxy roles of the config
- import_playbook: install_galaxy_roles.yml
tags: galaxy_roles