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/delete.yml
Executable file
12
roles/proxmox_lxc_provision/tasks/delete.yml
Executable file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
- ansible.builtin.include_tasks: stop.yaml
|
||||
- name: Delete a container
|
||||
community.general.proxmox:
|
||||
<<: "{{ proxmox_api_connection }}"
|
||||
vmid: "{{ lxc_vmid | default(omit) }}"
|
||||
hostname: "{{ lxc_hostname | default(omit) }}"
|
||||
state: absent
|
||||
register: delete_result
|
||||
failed_when: |
|
||||
delete_result.failed and
|
||||
('does not exist' not in delete_result.msg)
|
||||
Reference in New Issue
Block a user