initial commit
This commit is contained in:
17
roles/proxmox-lxc-provision/tasks/start.yaml
Executable file
17
roles/proxmox-lxc-provision/tasks/start.yaml
Executable file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
- name: Start the LXC container
|
||||
community.general.proxmox:
|
||||
api_host: "{{ proxmox_api_host }}"
|
||||
api_port: "{{ proxmox_api_port }}"
|
||||
api_user: "{{ proxmox_api_user }}"
|
||||
api_token_id: "{{ proxmox_api_token_id }}"
|
||||
api_token_secret: "{{ proxmox_api_token_secret }}"
|
||||
validate_certs: "{{ proxmox_api_validate_certs }}"
|
||||
|
||||
vmid: "{{ container_result.vmid }}"
|
||||
state: started
|
||||
register: start_result
|
||||
retries: 3
|
||||
delay: 5
|
||||
until: start_result is success
|
||||
failed_when: start_result.failed and ('already running' not in start_result.msg)
|
||||
Reference in New Issue
Block a user