summaryrefslogtreecommitdiffstats
path: root/molecule/default/prepare.yml
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-08-11 00:33:29 +0200
committerAhmed Abdelhalim <[email protected]>2025-08-11 00:33:29 +0200
commit3cc7bb4b415e758786ed04d3b506031cd9f1971b (patch)
tree2e60192ae61fca19022d9e1b3075edf75e06fe61 /molecule/default/prepare.yml
parentaeaa724705363ca104ab4770d844e396795af3ea (diff)
Add the bootstrap role to install archlinux w/testing
Diffstat (limited to 'molecule/default/prepare.yml')
-rw-r--r--molecule/default/prepare.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/molecule/default/prepare.yml b/molecule/default/prepare.yml
index b9f84a7..371f7c3 100644
--- a/molecule/default/prepare.yml
+++ b/molecule/default/prepare.yml
@@ -3,6 +3,11 @@
hosts: localhost
gather_facts: true
tasks:
+ - name: "Set distro test host name mapping"
+ ansible.builtin.set_fact:
+ distro_hostname_mapping:
+ archlinux: "archlinux.local"
+
- name: "Create virtual disk image"
become: true
community.general.filesize:
@@ -21,6 +26,7 @@
- name: "Set test facts"
ansible.builtin.set_fact:
test_device: "{{ loop_device.stdout }}"
+ test_hostname: "{{ distro_hostname_mapping[lookup('ansible.builtin.env', 'MOLECULE_DISTRO')] }}"
cacheable: true
- name: "Show test info"
@@ -29,3 +35,5 @@
with_items:
- name: "Test Device"
value: "{{ test_device }}"
+ - name: "Test Hostname;"
+ value: "{{ test_hostname }}"