From 272070747958ea3deb80a0fd0773b6ddb479b83d Mon Sep 17 00:00:00 2001 From: Zolfa Date: Tue, 31 Mar 2020 17:02:10 +0200 Subject: [PATCH] roles/ssh_server: missed step in ssh_lxc migration The role was still referencing older `ansible_docker_extra_args` variable. Replaced with `ansible_ssh_lxc_name`. --- roles/ssh_server/defaults/main.yaml | 2 +- roles/ssh_server/tasks/main.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/ssh_server/defaults/main.yaml b/roles/ssh_server/defaults/main.yaml index f2ce690..fb918b2 100644 --- a/roles/ssh_server/defaults/main.yaml +++ b/roles/ssh_server/defaults/main.yaml @@ -1,2 +1,2 @@ --- -server_fqdn: "{{ ansible_docker_extra_args or inventory_hostname }}.lilik.it" +server_fqdn: "{{ ansible_ssh_lxc_name | default(inventory_hostname) }}.lilik.it" diff --git a/roles/ssh_server/tasks/main.yaml b/roles/ssh_server/tasks/main.yaml index 1530deb..9ca8b8f 100644 --- a/roles/ssh_server/tasks/main.yaml +++ b/roles/ssh_server/tasks/main.yaml @@ -107,7 +107,7 @@ - meta: flush_handlers -- name: "waiting for ssh on {{ ansible_docker_extra_args | default(inventory_hostname) }} to start" +- name: "waiting for ssh on {{ ansible_ssh_lxc_name | default(inventory_hostname) }} to start" wait_for: host: "{{ hostvars | ip_from_inventory(inventory_hostname) }}" port: 22