kvm-host: Add firewall rule for DRBD
Some checks failed
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2667|5|2662|5|:-1: Output truncated.
gitea/ansible-roles/pipeline/head There was a failure building this commit

This commit is contained in:
Alexis Ben Miloud--Josselin 2023-12-13 12:21:37 +01:00
parent 95610e16be
commit b1ccd5cd8a
3 changed files with 14 additions and 1 deletions

View file

@ -3,4 +3,6 @@ kvm_custom_libvirt_images_path: ''
kvm_install_drbd: True
kvm_scripts_dir: /usr/local/sbin
kvm_pair: null
kvm_pair: null
kvm_drbd_interface: null

View file

@ -0,0 +1,9 @@
---
- name: Allow all traffic through DRBD interface
ansible.builtin.lineinfile:
path: /etc/minifirewall.d/drbd
line: "/sbin/iptables -I INPUT -p tcp -i {{ kvm_drbd_interface }} -j ACCEPT"
create: yes
when:
- kvm_drbd_interface is defined
- kvm_drbd_interface | length > 0

View file

@ -14,3 +14,5 @@
- ansible.builtin.include: images.yml
- ansible.builtin.include: tools.yml
- ansible.builtin.include: firewall.yml