bifrost/playbooks/test-bifrost-create-vm.yaml
Dmitry Tantsur 20863aa734 Cleanup test-bifrost.yaml
Remove variables that can be calculated, move global variables like
testing to the top level. Remove collecting information that should
rather be collected by CI jobs themselves.

Change-Id: Ib73a09529c8ad1640db4542d68ea3f76d6c7ea24
2020-09-17 12:42:58 +02:00

20 lines
622 B
YAML

# Create a default VM
---
- hosts: localhost
connection: local
name: "Executes install, enrollment, and testing in one playbook"
become: yes
gather_facts: yes
pre_tasks:
- name: "Set default baremetal.json file if not already defined"
set_fact:
baremetal_json_file: "/tmp/baremetal.json"
when: baremetal_json_file is not defined
- name: "Set variables if running in the CI"
set_fact:
copy_from_local_path: true
git_url_root: "{{ lookup('env', 'WORKSPACE') }}"
when: lookup('env', 'ZUUL_BRANCH') | length > 0
roles:
- role: bifrost-create-vm-nodes