fix: retry to apply fw rules
This commit is contained in:
parent
1e7f05a29e
commit
9b08cf95eb
@ -37,3 +37,7 @@
|
|||||||
direction: in
|
direction: in
|
||||||
comment: "Network File System (NFS)"
|
comment: "Network File System (NFS)"
|
||||||
with_items: "{{ nfs_server_firewall_allowed_sources | default([]) }}"
|
with_items: "{{ nfs_server_firewall_allowed_sources | default([]) }}"
|
||||||
|
retries: 5
|
||||||
|
delay: 2
|
||||||
|
register: ufw_result
|
||||||
|
until: ufw_result is succeeded
|
||||||
|
|||||||
@ -53,6 +53,10 @@
|
|||||||
port: "80"
|
port: "80"
|
||||||
proto: tcp
|
proto: tcp
|
||||||
comment: Nginx HTTP
|
comment: Nginx HTTP
|
||||||
|
retries: 5
|
||||||
|
delay: 2
|
||||||
|
register: ufw_result
|
||||||
|
until: ufw_result is succeeded
|
||||||
|
|
||||||
- name: Allow HTTPS traffic through firewall
|
- name: Allow HTTPS traffic through firewall
|
||||||
community.general.ufw:
|
community.general.ufw:
|
||||||
@ -60,6 +64,10 @@
|
|||||||
port: "443"
|
port: "443"
|
||||||
proto: tcp
|
proto: tcp
|
||||||
comment: Nginx HTTPS
|
comment: Nginx HTTPS
|
||||||
|
retries: 5
|
||||||
|
delay: 2
|
||||||
|
register: ufw_result
|
||||||
|
until: ufw_result is succeeded
|
||||||
|
|
||||||
- name: Enable and start nginx service
|
- name: Enable and start nginx service
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
|
|||||||
@ -47,3 +47,7 @@
|
|||||||
direction: in
|
direction: in
|
||||||
comment: "NTP traffic"
|
comment: "NTP traffic"
|
||||||
loop: "{{ ntp_firewall_allowed_sources | default([]) }}"
|
loop: "{{ ntp_firewall_allowed_sources | default([]) }}"
|
||||||
|
retries: 5
|
||||||
|
delay: 2
|
||||||
|
register: ufw_result
|
||||||
|
until: ufw_result is succeeded
|
||||||
|
|||||||
@ -7,6 +7,11 @@
|
|||||||
- crun
|
- crun
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: Enable Podman service
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
name: podman.service
|
||||||
|
enabled: true
|
||||||
|
|
||||||
- name: Create projects directory
|
- name: Create projects directory
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ podman_projects_dir }}"
|
path: "{{ podman_projects_dir }}"
|
||||||
|
|||||||
@ -66,6 +66,10 @@
|
|||||||
direction: in
|
direction: in
|
||||||
comment: "PostgreSQL"
|
comment: "PostgreSQL"
|
||||||
loop: "{{ postgres_firewall_allowed_sources }}"
|
loop: "{{ postgres_firewall_allowed_sources }}"
|
||||||
|
retries: 5
|
||||||
|
delay: 2
|
||||||
|
register: ufw_result
|
||||||
|
until: ufw_result is succeeded
|
||||||
|
|
||||||
- name: Enable and start PostgreSQL service
|
- name: Enable and start PostgreSQL service
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
|
|||||||
@ -154,3 +154,7 @@
|
|||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
direction: in
|
direction: in
|
||||||
loop: "{{ unbound_firewall_allowed_sources | default([]) }}"
|
loop: "{{ unbound_firewall_allowed_sources | default([]) }}"
|
||||||
|
retries: 5
|
||||||
|
delay: 2
|
||||||
|
register: ufw_result
|
||||||
|
until: ufw_result is succeeded
|
||||||
|
|||||||
@ -56,3 +56,7 @@
|
|||||||
direction: in
|
direction: in
|
||||||
comment: "Valkey"
|
comment: "Valkey"
|
||||||
loop: "{{ valkey_firewall_allowed_sources }}"
|
loop: "{{ valkey_firewall_allowed_sources }}"
|
||||||
|
retries: 5
|
||||||
|
delay: 2
|
||||||
|
register: ufw_result
|
||||||
|
until: ufw_result is succeeded
|
||||||
|
|||||||
@ -53,6 +53,10 @@
|
|||||||
proto: udp
|
proto: udp
|
||||||
direction: in
|
direction: in
|
||||||
comment: Wireguard VPN
|
comment: Wireguard VPN
|
||||||
|
retries: 5
|
||||||
|
delay: 2
|
||||||
|
register: ufw_result
|
||||||
|
until: ufw_result is succeeded
|
||||||
|
|
||||||
- name: Start and enable service
|
- name: Start and enable service
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user