38 lines
868 B
YAML
38 lines
868 B
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 | 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"
|