proxmox-backup/tasks/install.yml
2024-12-24 10:51:31 +01:00

46 lines
1.0 KiB
YAML

---
- name: proxmox backup client | get GPG key
apt_key:
url: "{{ pbs_repo_key }}"
- name: proxmox backup client | add repository
become: yes
apt_repository:
repo: "{{ pbs_repo_no_subscription }}"
filename: pbs-client.list
- name: proxmox backup client | update APT Cache
apt:
update_cache: yes
cache_valid_time: 3600
- name: proxmox backup client | install
apt:
name:
- proxmox-backup-client
state: present
- name: proxmox backup client | copy backup script
template:
src: brain_backup.j2
dest: /usr/local/bin/brain_backup
owner: root
group: root
mode: 0755
- name: proxmox backup client | copy pxarexclude
template:
src: pxarexclude.j2
dest: /.pxarexclude.j2
owner: root
group: root
mode: 0640
- name: proxmox backup client | install crontab
cron:
name: brain backup
minute: "{{ backup_cron_minute | default('0') }}"
hour: "{{ backup_cron_hour | default('2') }}"
user: root
job: "/usr/local/bin/brain_backup"