From 12bc5a559ba182ed6d9c1a1d86b13ff4e3c95b17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20K=C3=A1rolyi?= Date: Sat, 12 Jan 2019 21:53:47 +0100 Subject: [PATCH] Use jail- prefix for hostnames --- tasks/jail/start.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/jail/start.yml b/tasks/jail/start.yml index 47352d8..7fcbc38 100644 --- a/tasks/jail/start.yml +++ b/tasks/jail/start.yml @@ -34,7 +34,7 @@ block: | {{ vars['jail_' + jail_name + '_newest_id'] }} { path="{{ vars['jail_' + jail_name + '_new_path']|quote }}"; - host.hostname="{{ vars['jail_' + jail_name + '_newest_id'] }}"; + host.hostname="jail-{{ vars['jail_' + jail_name + '_newest_id'] }}"; ip4.addr="lo0|{{ vars['jail_' + jail_name + '_new_ip4'] }}"/32; {{ _iter_flattened_config }} } @@ -50,7 +50,7 @@ block: | {{ vars['jail_' + jail_name + '_newest_id'] }} { path="{{ vars['jail_' + jail_name + '_new_path']|quote }}"; - host.hostname="{{ vars['jail_' + jail_name + '_newest_id'] }}"; + host.hostname="jail-{{ vars['jail_' + jail_name + '_newest_id'] }}"; ip4.addr="lo0|{{ vars['jail_' + jail_name + '_new_ip4'] }}/32"; ip6.addr="bridge0|{{ vars['jail_' + jail_name + '_ip6'] }}/128"; {{ _iter_flattened_config }}