init
This commit is contained in:
10
ansible/roles/proxmox/lxc/download_template/tasks/main.yml
Normal file
10
ansible/roles/proxmox/lxc/download_template/tasks/main.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
- name: update LXC template index
|
||||
ansible.builtin.command: pveam update
|
||||
register: pveam_update
|
||||
changed_when: false
|
||||
|
||||
- name: download LXC template
|
||||
ansible.builtin.command: "pveam download local {{ lxc_template_name }}"
|
||||
args:
|
||||
creates: "/var/lib/vz/template/cache/{{ lxc_template_name }}"
|
||||
5
ansible/roles/proxmox/lxc/shutdown/tasks/main.yml
Normal file
5
ansible/roles/proxmox/lxc/shutdown/tasks/main.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- name: shutdown LXC container
|
||||
ansible.builtin.command: pct shutdown {{ lxc_id }}
|
||||
become: true
|
||||
changed_when: true
|
||||
Reference in New Issue
Block a user