From ab4b4c5dd9b4db17647c7fed814a412eabe80b1d Mon Sep 17 00:00:00 2001 From: Musee Ullah Date: Mon, 14 May 2018 08:49:18 -0700 Subject: [PATCH] Always use SSH to join PVE nodes for PVE 5.x --- tasks/pve_add_node.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/pve_add_node.yml b/tasks/pve_add_node.yml index 1251a3ce..dbdfeae8 100644 --- a/tasks/pve_add_node.yml +++ b/tasks/pve_add_node.yml @@ -3,7 +3,7 @@ __pve_current_node: "{{ item }}" - name: Add node to Proxmox cluster - command: "pvecm add {{ hostvars[groups[pve_group][0]]['ansible_default_ipv4']['address'] }} -ring0_addr {{ pve_cluster_ring0_addr }}{% if pve_cluster_ring1_addr is defined %} -ring1_addr {{ pve_cluster_ring1_addr }}{% endif %}" + command: "pvecm add {{ hostvars[groups[pve_group][0]]['ansible_default_ipv4']['address'] }}{{ ' -use_ssh' if ansible_distribution_release == 'stretch' else '' }} -ring0_addr {{ pve_cluster_ring0_addr }}{% if pve_cluster_ring1_addr is defined %} -ring1_addr {{ pve_cluster_ring1_addr }}{% endif %}" args: creates: "{{ pve_cluster_conf }}" when: