Use site-available/enabled with a symlink

This commit is contained in:
rockstable 2022-05-04 16:38:47 +02:00
parent 54e2aa8e7c
commit 38ba272331
1 changed files with 7 additions and 2 deletions

View File

@ -25,7 +25,7 @@
autoindex on;
}
}
dest: "/etc/nginx/sites-enabled/default"
dest: "/etc/nginx/sites-available/hw4f-fai"
mode: '0644'
owner: root
group: root
@ -34,6 +34,12 @@
- nginx
- nginx_site_available
- name: "Enable nginx site 'hw4f-fai'"
ansible.builtin.file:
src: "/etc/nginx/sites-available/hw4f-fai"
dest: "/etc/nginx/sites-available/hw4f-fai"
state: link
notify: restart nginx
tags:
- nginx
- nginx_site_enable
@ -50,7 +56,6 @@
<p>Restart the computer and boot into PXE to install Ubuntu.</p>
</body>
</html>
dest: "/var/www/html/index.html"
mode: "0644"
owner: root