Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2024-10-08 11:31:26 +02:00
parent 0c1a8a95f2
commit 5d0f56ce38
15 changed files with 49 additions and 38 deletions

View File

@@ -1,6 +1,6 @@
---
- name: Template the nginx config file with dynamic upstreams
template:
ansible.builtin.template:
src: templates/nginx.conf.j2
dest: "{{ nginx_config_path }}"
owner: root
@@ -13,7 +13,7 @@
k3s_server_ips: "{{ k3s.server.ips }}"
- name: Enable nginx
systemd:
ansible.builtin.systemd:
name: nginx
daemon_reload: true
enabled: true