mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-26 15:55:56 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
17
roles/pbs/tasks/install.yml
Normal file
17
roles/pbs/tasks/install.yml
Normal 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
|
9
roles/pbs/tasks/iptables.yml
Normal file
9
roles/pbs/tasks/iptables.yml
Normal 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
6
roles/pbs/tasks/main.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
|
||||
- include: install.yml
|
||||
- include: iptables.yml
|
||||
when: iptables_manage | default(True)
|
||||
- include: services.yml
|
9
roles/pbs/tasks/services.yml
Normal file
9
roles/pbs/tasks/services.yml
Normal 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
|
Reference in New Issue
Block a user