Update to 2022-08-19 16:00

This commit is contained in:
Daniel Berteaud
2022-08-19 16:00:17 +02:00
parent 6ebee1169f
commit f17ab3267b
50 changed files with 516 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
# List of IP/CIDR for which ports 7000 to 8000 will be opened
# if iptables_manage is True
drbd_src_ip: []

4
roles/drbd/meta/main.yml Normal file
View File

@@ -0,0 +1,4 @@
---
dependencies:
- role: repo_elrepo

View File

@@ -0,0 +1,10 @@
---
# Load distribution specific variables
- include_vars: "{{ item }}"
with_first_found:
- "{{ role_path }}/vars/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
- "{{ role_path }}/vars/{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yml"
- "{{ role_path }}/vars/{{ ansible_distribution }}.yml"
- "{{ role_path }}/vars/{{ ansible_os_family }}.yml"
tags: drbd

View File

@@ -0,0 +1,5 @@
---
- name: Install packages
package: name={{ drbd_packages }}
tags: drbd

View File

@@ -0,0 +1,9 @@
---
- name: Handle DRBD ports
iptables_raw:
name: drbd_ports
state: "{{ (drbd_src_ip | length > 0) | ternary('present','absent') }}"
rules: "-A INPUT -m state --state NEW -p tcp --dport 7000:8000 -s {{ drbd_src_ip | join(',') }} -j ACCEPT"
tags: firewall,drbd

View File

@@ -0,0 +1,7 @@
---
- include_tasks: facts.yml
tags: always
- include_tasks: install.yml
tags: always

View File

@@ -0,0 +1,6 @@
---
drbd_packages:
- kmod-drbd90
- drbd-utils
- drbd-udev