ansible playbooks for retailor.io infrastructure

This commit is contained in:
2025-03-03 19:33:36 +01:00
committed by KevinMidboe
commit 92cb10ba27
139 changed files with 33603 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
---
- name: Update apt cache if older than 1 hour
apt:
update_cache: yes
cache_valid_time: 3600
- name: Add ufw
apt: pkg=ufw state=latest
- name: Enable access via ssh
ufw:
rule: allow
port: "22"
- name: Enable custom firewall ports
ufw:
rule: allow
port: "{{ item }}"
loop: "{{ custom_firewall_ports | default([]) }}"
- name: Start ufw
ufw:
state: enabled