Update to 2021-12-01 19:13

This commit is contained in:
Daniel Berteaud
2021-12-01 19:13:34 +01:00
commit 4c4556c660
2153 changed files with 60999 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
---
- name: Install PBS
apt:
name:
- proxmox-backup-server
policy_rc_d: 101 # Prevent the daemon from starting automatically after install
tags: pbs
- name: Install dehydrated hook
template: src=dehydrated_hook.sh.j2 dest=/etc/dehydrated/hooks_deploy_cert.d/pbs.sh mode=755
tags: pbs
- name: Remove registration nag
patch: src=remove_nag.patch dest=/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
ignore_errors: True
tags: pbs

View File

@@ -0,0 +1,9 @@
---
- name: Handle PBS port
iptables_raw:
name: pbs_port
state: "{{ (pbs_src_ip | length > 0) | ternary('present', 'absent') }}"
rules: "-A INPUT -m state --state NEW -p tcp --dport 8007 -s {{ pbs_src_ip | flatten | join(',') }} -j ACCEPT"
tags: pbs,firewall

6
roles/pbs/tasks/main.yml Normal file
View File

@@ -0,0 +1,6 @@
---
- include: install.yml
- include: iptables.yml
when: iptables_manage | default(True)
- include: services.yml

View File

@@ -0,0 +1,9 @@
---
- name: Start and enable services
service: name={{ item }} state=started enabled=True
loop:
- proxmox-backup
- proxmox-backup-proxy
- proxmox-backup-banner
tags: pbs