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

@@ -10,6 +10,3 @@ all:
debi13: debi13:
ansible_host: 127.0.0.1 ansible_host: 127.0.0.1
ansible_port: 2224 ansible_port: 2224
ubu24:
ansible_host: 127.0.0.1
ansible_port: 2223

View File

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

View File

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

View File

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