fix: rename roles to use underscores instead of hyphens which was causing the roles not to be found
This commit is contained in:
12
roles/proxmox_lxc_provision/tasks/stop.yml
Executable file
12
roles/proxmox_lxc_provision/tasks/stop.yml
Executable file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
- name: Stop container if it is running
|
||||
community.general.proxmox:
|
||||
<<: "{{ proxmox_api_connection }}"
|
||||
vmid: "{{ lxc_vmid | default(omit) }}"
|
||||
hostname: "{{ lxc_hostname | default(omit) }}"
|
||||
state: "stopped"
|
||||
register: stop_result
|
||||
failed_when: |-
|
||||
stop_result.failed and
|
||||
('not running' not in stop_result.msg) and
|
||||
('does not exist' not in stop_result.msg)
|
||||
Reference in New Issue
Block a user