Nginx conf template + ATON changes

This commit is contained in:
2026-03-02 16:43:43 +01:00
parent 57020528c6
commit 846d1b1072
4 changed files with 4 additions and 8 deletions

View File

@@ -38,4 +38,3 @@
state: present
become: true
become_user: aton

View File

@@ -6,9 +6,9 @@
update_cache: yes
- name: Copy nginx config file
ansible.builtin.copy:
src: nginx.conf
dest: /etc/nginx/conf.d/test.conf
ansible.builtin.template:
src: nginx.conf.j2
dest: "/etc/nginx/conf.d/{{ nginx_server_name }}.conf"
owner: root
group: root
mode: '0644'

View File

@@ -1,6 +1,6 @@
server {
listen 80; #default_server;
#server_name <your-domain>;
server_name {{ nginx_server_name }};
location / {
proxy_pass http://127.0.0.1:8080;