Update to 2021-05-26 23:00

master
Daniel Berteaud 4 years ago
parent 20c89a1e52
commit 92813968b5
  1. 12
      roles/openvpn/tasks/main.yml
  2. 4
      roles/pbs/defaults/main.yml
  3. 4
      roles/pbs/meta/main.yml
  4. 9
      roles/pbs/tasks/install.yml
  5. 10
      roles/pbs/tasks/iptables.yml
  6. 5
      roles/pbs/tasks/main.yml
  7. 9
      roles/pbs/tasks/services.yml

@ -7,14 +7,10 @@
- set_fact: ovpn_daemons={{ ovpn_daemons_conf | default([]) }}
tags: ovpn
- name: Install packages
yum: name=openvpn
when: ansible_os_family == 'RedHat'
tags: ovpn
- name: Install packages
apt: name=openvpn
when: ansible_os_family == 'Debian'
- name: Install OpenVPN
package:
name:
- openvpn
tags: ovpn
- name: Deploy daemons configuration

@ -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…
Cancel
Save