first commit

This commit is contained in:
Ryan Cuda
2026-01-25 08:31:56 -07:00
commit 1234ef51c0
57 changed files with 2560 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
---
- name: Install HAProxy
ansible.builtin.dnf:
name: haproxy
state: present
- name: Enable and start HAProxy
ansible.builtin.service:
name: haproxy
state: started
enabled: true
- name: Deploy HAProxy configuration
ansible.builtin.template:
src: haproxy.cfg.j2
dest: /etc/haproxy/haproxy.cfg
owner: root
group: root
mode: '0644'
notify: Restart haproxy
- name: Allow port 80 through firewalld
ansible.posix.firewalld:
service: http
permanent: true
immediate: true
state: enabled