Skip to content

Commit

Permalink
Pass -use-ssh to fix clustering (fixes #29)
Browse files Browse the repository at this point in the history
Merge branch 'hotfix/ssh_clustering' into develop
  • Loading branch information
lae committed May 14, 2018
2 parents b010844 + ab4b4c5 commit 42495cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/pve_add_node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 42495cc

Please sign in to comment.