From d6875cf760064428d95bfd4b3b057b88adb640ac Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 12 Aug 2024 13:57:20 +0200 Subject: [PATCH] podman: default the hostname to the name of the platform This was the case in the past (and is still the case for the Docker driver), but was accidentally changed in an unrelated refactoring. Fixes: e9d56496261807a5174c1347123b49e629c2490b --- src/molecule_plugins/podman/playbooks/create.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/molecule_plugins/podman/playbooks/create.yml b/src/molecule_plugins/podman/playbooks/create.yml index 57eab266..88b14864 100644 --- a/src/molecule_plugins/podman/playbooks/create.yml +++ b/src/molecule_plugins/podman/playbooks/create.yml @@ -146,7 +146,7 @@ etc_hosts: "{{ item.etc_hosts | default(omit) }}" executable: "{{ podman_exec }}" expose: "{{ item.exposed_ports | default(omit) }}" - hostname: "{{ item.hostname | default(omit) }}" + hostname: "{{ item.hostname | default(item.name) }}" image: "{{ item.pre_build_image | default(false) | ternary('', 'molecule_local/') }}{{ item.image }}" ip: "{{ item.ip | default(omit) }}" label: