This commit is contained in:
bee
2026-04-27 15:07:54 +02:00
commit 56d73c7c6f
34 changed files with 2295 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
- name: Nginx
hosts: pi
become: true
tasks:
- name: Install nginx
ansible.builtin.apt:
name: nginx
state: present
- name: Delete default
ansible.builtin.file:
path: /etc/nginx/sites-enabled/default
state: absent
- name: Copy sites
ansible.builtin.copy:
src: sites-enabled/
dest: /etc/nginx/sites-enabled/
owner: root
group: root
mode: '0644'
- name: Restart nginx
ansible.builtin.service:
name: nginx
state: restarted