Minor updates
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Ensure Nginx is installed and configured
|
- name: Ensure Nginx is installed and configured
|
||||||
hosts: bab1.mgmt.toal.ca
|
hosts: all
|
||||||
become: true
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
@@ -12,9 +12,22 @@
|
|||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
name: nginxinc.nginx_core.nginx_config
|
name: nginxinc.nginx_core.nginx_config
|
||||||
|
|
||||||
- name: Ensure firewall is open on port 80
|
- name: Ensure python firewall library is installed
|
||||||
|
ansible.builtin.package:
|
||||||
|
name: python3-firewall
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Ensure firewalld is enabled
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: firewalld
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
- name: Ensure firewall ports are open
|
||||||
ansible.posix.firewalld:
|
ansible.posix.firewalld:
|
||||||
port: 80/tcp
|
port: "{{ item }}"
|
||||||
permanent: true
|
permanent: true
|
||||||
immediate: true
|
immediate: true
|
||||||
state: enabled
|
state: enabled
|
||||||
|
loop:
|
||||||
|
- 80/tcp
|
||||||
|
- 22/tcp
|
||||||
|
|||||||
Reference in New Issue
Block a user