forked from vmware/ansible-vsphere-gos-validation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
28 lines (26 loc) · 1007 Bytes
/
main.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
# Copyright 2021-2023 VMware, Inc.
# SPDX-License-Identifier: BSD-2-Clause
---
# Main playbook for launching guest OS validation testing on vSphere
- name: main
hosts: localhost
tasks:
- name: "Set facts of the current main playbook directory and cache directory"
ansible.builtin.set_fact:
main_playbook_path: "{{ playbook_dir }}"
local_cache: "{{ playbook_dir }}/cache"
- name: "Display the directory info"
ansible.builtin.debug:
msg:
- "Current main playbook directory: {{ main_playbook_path }}"
- "Local cache directory: {{ local_cache }}"
- include_tasks: common/create_directory.yml
vars:
dir_path: "{{ local_cache }}"
dir_mode: "0777"
# Prepare testing environment
- import_playbook: env_setup/env_setup.yml
# Execute test case one by one
- import_playbook: "{{ testing_testcase_file | default('linux/gosv_testcase_list.yml') }}"
# Cleanup testing environment
- import_playbook: env_setup/env_cleanup.yml