diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-05-04 00:03:39 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-05-04 00:03:39 +0200 |
| commit | 8826629b44564b3ec3ca57c71563e01f74dd7c78 (patch) | |
| tree | d8b5aeff172b81d95952ca4e12e4b1b9bf335605 /molecule/default/prepare.yml | |
| parent | 2de4321b014e8f95b7d7450f78048ffaa7a1a703 (diff) | |
Add proxmox testing and update testing vars
Diffstat (limited to 'molecule/default/prepare.yml')
| -rw-r--r-- | molecule/default/prepare.yml | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/molecule/default/prepare.yml b/molecule/default/prepare.yml index 9a9d735..76b7787 100644 --- a/molecule/default/prepare.yml +++ b/molecule/default/prepare.yml @@ -5,10 +5,17 @@ tasks: - name: "Set distro test host name mapping" ansible.builtin.set_fact: - distro_hostname_mapping: - archlinux: "desktop.local" - ubuntu: "laptop.local" - raspberrypi: "rpi5.local" + scenario_vars: + archlinux: + hostname: "desktop.local" + ubuntu: + hostname: "laptop.local" + raspberrypi: + hostname: "rpi5.local" + bootstrap_pi: true + proxmox: + hostname: "pve.local" + bootstrap_proxmox: true - name: "Create virtual disk image" become: true @@ -24,10 +31,16 @@ register: loop_device changed_when: true + - name: "Set distro key" + ansible.builtin.set_fact: + distro_key: "{{ lookup('ansible.builtin.env', 'MOLECULE_DISTRO') }}" + - name: "Set test facts" ansible.builtin.set_fact: test_device: "{{ loop_device.stdout }}" - test_hostname: "{{ distro_hostname_mapping[lookup('ansible.builtin.env', 'MOLECULE_DISTRO')] }}" + test_hostname: "{{ scenario_vars[distro_key].hostname }}" + test_bootstrap_pi: "{{ scenario_vars[distro_key].bootstrap_pi | default(false) }}" + test_bootstrap_proxmox: "{{ scenario_vars[distro_key].bootstrap_proxmox | default(false) }}" cacheable: true - name: "Show test info" |
