update cv4pve autosnap role #20
3 changed files with 3 additions and 6 deletions
|
@ -29,7 +29,7 @@ users:
|
||||||
allow_passwordless_sudo: true
|
allow_passwordless_sudo: true
|
||||||
|
|
||||||
### cv4pve
|
### cv4pve
|
||||||
cv4pve_version: "v1.14.8"
|
cv4pve_version: "v1.14.7"
|
||||||
|
|
||||||
### mgrote_apt_manage_packages
|
### mgrote_apt_manage_packages
|
||||||
apt_packages_extra:
|
apt_packages_extra:
|
||||||
|
|
|
@ -4,14 +4,11 @@
|
||||||
|
|
||||||
- name: create directories
|
- name: create directories
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ item }}"
|
path: "/usr/local/bin/cv4pve/"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ cv4pve_user }}"
|
owner: "{{ cv4pve_user }}"
|
||||||
group: "{{ cv4pve_user_group }}"
|
group: "{{ cv4pve_user_group }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
loop:
|
|
||||||
- "/usr/local/bin/cv4pve-{{ cv4pve_version }}/"
|
|
||||||
- /usr/local/bin/cv4pve/
|
|
||||||
|
|
||||||
- name: download archives
|
- name: download archives
|
||||||
ansible.builtin.unarchive:
|
ansible.builtin.unarchive:
|
||||||
|
|
|
@ -6,4 +6,4 @@ OnFailure=cv4pve_mail.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/local/bin/cv4pve-{{ cv4pve_version }}/cv4pve-autosnap --host=127.0.0.1 --api-token {{ cv4pve_api_user }}={{ cv4pve_api_token }} --vmid="{{ cv4pve_vmid }}" snap --label='daily' --keep="{{ cv4pve_keep_snapshots }}" --state
|
ExecStart=/usr/local/bin/cv4pve/cv4pve-autosnap-{{ cv4pve_version }} --host=127.0.0.1 --api-token {{ cv4pve_api_user }}={{ cv4pve_api_token }} --vmid="{{ cv4pve_vmid }}" snap --label='daily' --keep="{{ cv4pve_keep_snapshots }}" --state
|
||||||
|
|
Loading…
Reference in a new issue