2025-05-30 22:58:35 -04:00

32 lines
737 B
YAML

- name: Include Debian-specific tasks
ansible.builtin.include_tasks: debian.yml
when: ansible_os_family == "Debian"
- name: Include Rocky Linux-specific tasks
ansible.builtin.include_tasks: rocky.yml
when: ansible_os_family == "RedHat"
- name: Install docker-compose .env
ansible.builtin.template:
src: compose-env.j2
dest: "{{ webserver_root }}/.env"
mode: "600"
notify: composeup_webserver
- name: Allow MariaDB database connections
community.general.ufw:
rule: allow
port: 3306
proto: tcp
src: "{{ item }}"
loop: "{{ mariadb_trust }}"
- name: Add HTTP and HTTPS firewall rule
community.general.ufw:
rule: allow
port: "{{ item }}"
proto: tcp
loop:
- "80"
- "443"