Files
ansible-collection-infrastr…/roles/proxmox_lxc_provision/tasks/start.yml
patrick 479996612e refactor: use module_defaults for proxmox API connection
- Replace YAML merge keys (<<:) with module_defaults block in main.yml
- Simplify connection variables to individual vars instead of dictionary
- Remove redundant connection params from individual task files
- Document standalone task usage requires play-level module_defaults
- Update README examples with new variable pattern
2026-04-14 17:18:18 -04:00

11 lines
283 B
YAML
Executable File

---
- name: Start the LXC container
community.general.proxmox:
vmid: "{{ lxc_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)