This commit is contained in:
bee
2026-08-15 19:18:59 +02:00
parent 59aa8a7bcf
commit c63db540e8
32 changed files with 767 additions and 64 deletions
+20 -2
View File
@@ -28,6 +28,14 @@
group: root
mode: '0644'
- name: Copy ssl.conf
ansible.builtin.copy:
src: ssl.conf
dest: /etc/nginx/ssl.conf
owner: root
group: root
mode: '0644'
- name: Copy html content
ansible.builtin.copy:
src: www/
@@ -36,7 +44,17 @@
group: www-data
mode: '0644'
- name: Restart nginx
- name: Validate config
ansible.builtin.command: nginx -t
changed_when: false
- name: Start nginx
ansible.builtin.service:
name: nginx
state: restarted
state: started
enabled: true
- name: Reload nginx
ansible.builtin.service:
name: nginx
state: reloaded