Files
bab-backend-ansible/install_nginx.yml

21 lines
524 B
YAML

---
- name: Ensure Nginx is installed and configured
hosts: bab1.mgmt.toal.ca
become: true
tasks:
- name: Nginx Installed
ansible.builtin.include_role:
name: nginxinc.nginx_core.nginx
- name: Nginx Configured to serve Front-end Application
ansible.builtin.include_role:
name: nginxinc.nginx_core.nginx_config
- name: Ensure firewall is open on port 80
ansible.posix.firewalld:
port: 80/tcp
permanent: true
immediate: true
state: enabled