Minor updates

This commit is contained in:
2023-12-04 18:29:42 -05:00
parent 3dbbe70f9e
commit 51b7ecbd3e

View File

@@ -1,6 +1,6 @@
---
- name: Ensure Nginx is installed and configured
hosts: bab1.mgmt.toal.ca
hosts: all
become: true
tasks:
@@ -12,9 +12,22 @@
ansible.builtin.include_role:
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:
port: 80/tcp
port: "{{ item }}"
permanent: true
immediate: true
state: enabled
loop:
- 80/tcp
- 22/tcp