Nginx conf template + ATON changes
This commit is contained in:
@@ -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
|
|
||||||
|
|||||||
@@ -38,4 +38,3 @@
|
|||||||
state: present
|
state: present
|
||||||
become: true
|
become: true
|
||||||
become_user: aton
|
become_user: aton
|
||||||
|
|
||||||
|
|||||||
@@ -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'
|
||||||
|
|||||||
@@ -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;
|
||||||
Reference in New Issue
Block a user