Rearange existing roles to make more sense

This commit is contained in:
Thomas Kleinendorst 2024-04-14 12:29:17 +02:00
parent bec00118c0
commit e06547e25c
11 changed files with 104 additions and 104 deletions

View file

@ -4,3 +4,8 @@
ansible.builtin.systemd:
name: nginx.service
state: restarted
- name: Restart ufw
become: true
ansible.builtin.systemd:
name: ufw.service
state: restarted

View file

@ -1,9 +1,4 @@
---
- name: Install Podman
become: true
ansible.builtin.apt:
name: podman
state: present
- name: Create a new user
ansible.builtin.include_role:
name: user
@ -42,6 +37,13 @@
dest: /etc/nginx/conf.d/actual.conf
mode: '0644'
notify: Restart Nginx
- name: Allow https through firewall
become: true
community.general.ufw:
rule: allow
port: https
proto: tcp
notify: Restart ufw
- name: Debug
ansible.builtin.debug:
msg: "Don't forget to manually add a DNS record for actual.kleinendorst.info pointing to: {{ ansible_facts['default_ipv4']['address'] }}."