parent
20c89a1e52
commit
92813968b5
7 changed files with 45 additions and 8 deletions
@ -0,0 +1,4 @@ |
||||
--- |
||||
|
||||
# This control access on port 8007. Note that the port is not configurable |
||||
pbs_src_ip: [] |
@ -0,0 +1,4 @@ |
||||
--- |
||||
|
||||
dependencies: |
||||
- role: repo_pbs |
@ -0,0 +1,9 @@ |
||||
--- |
||||
|
||||
- name: Install PBS |
||||
apt: |
||||
name: |
||||
- proxmox-backup-server |
||||
policy_rc_d: 101 # Prevent the daemon from starting automatically after install |
||||
tags: pbs |
||||
|
@ -0,0 +1,10 @@ |
||||
--- |
||||
|
||||
- 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" |
||||
when: iptables_manage | default(True) |
||||
tags: pbs,firewall |
||||
|
@ -0,0 +1,5 @@ |
||||
--- |
||||
|
||||
- include: install.yml |
||||
- include: iptables.yml |
||||
- include: services.yml |
@ -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 |
Loading…
Reference in new issue