From b82a32c730b9852f3d8f44a3c003cd6c94811dad Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 20 Dec 2024 15:27:25 +0100 Subject: [PATCH] podman: default the hostname to the name of the platform (#264) 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 57eab26..88b1486 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: