fix: retry to apply fw rules
This commit is contained in:
@@ -53,6 +53,10 @@
|
||||
port: "80"
|
||||
proto: tcp
|
||||
comment: Nginx HTTP
|
||||
retries: 5
|
||||
delay: 2
|
||||
register: ufw_result
|
||||
until: ufw_result is succeeded
|
||||
|
||||
- name: Allow HTTPS traffic through firewall
|
||||
community.general.ufw:
|
||||
@@ -60,6 +64,10 @@
|
||||
port: "443"
|
||||
proto: tcp
|
||||
comment: Nginx HTTPS
|
||||
retries: 5
|
||||
delay: 2
|
||||
register: ufw_result
|
||||
until: ufw_result is succeeded
|
||||
|
||||
- name: Enable and start nginx service
|
||||
ansible.builtin.systemd:
|
||||
|
||||
Reference in New Issue
Block a user