kubespray/tests/cloud_playbooks/create-packet.yml
Max Gautier e62bbe0c76
CI: adapt packet-ci role to act as a molecule provisioner
To work with molecule, we need to use the name provided by molecule_yml
in inventory.

Inject the name in the VirtualMachineInstance (with a default to handle
non-molecule scenario) and get it back as part of inventory).

Account for no ansible groups
2025-03-13 10:14:45 +01:00

12 lines
235 B
YAML

---
- name: Provision Packet VMs
hosts: localhost
gather_facts: false
become: true
tasks:
- name: Create Kubevirt VMs
import_role:
name: packet-ci
- name: Update inventory for Molecule
meta: refresh_inventory