Skip to content

Commit

Permalink
fix: use complete vmid in ping outside task
Browse files Browse the repository at this point in the history
  • Loading branch information
bellackn committed Jul 30, 2024
1 parent 6f19a4c commit da60c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/proxmox_lxc/tasks/create_lxc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
when: proxmox_lxc_started.changed

- name: Ping outside # noqa no-handler
ansible.builtin.command: "lxc-attach -n {{ proxmox_lxc_started.msg[3:6] }} -- ping {{ proxmox_lxc_ping_server }} -c 2"
ansible.builtin.command: "lxc-attach -n {{ proxmox_lxc_started.vmid }} -- ping {{ proxmox_lxc_ping_server }} -c 2"
delegate_to: "{{ proxmox_lxc_api_node }}"
changed_when: false
when:
Expand Down

0 comments on commit da60c5a

Please sign in to comment.