From bcc22d2d4bcd802f40ca55d84ca05751545e47d3 Mon Sep 17 00:00:00 2001 From: gabriel becker Date: Sat, 23 Sep 2023 15:40:52 +1000 Subject: [PATCH] Start nginx config --- roles/webserver/tasks/main.yml | 2 +- roles/webserver/tasks/nginx_config.yml | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/roles/webserver/tasks/main.yml b/roles/webserver/tasks/main.yml index 92cedbb..7c8937c 100644 --- a/roles/webserver/tasks/main.yml +++ b/roles/webserver/tasks/main.yml @@ -2,4 +2,4 @@ - include_tasks: dependencies.yml - include_tasks: install_docker.yml - include_tasks: start_service.yml -# - include_tasks: nginx_config.yml \ No newline at end of file +- include_tasks: nginx_config.yml \ No newline at end of file diff --git a/roles/webserver/tasks/nginx_config.yml b/roles/webserver/tasks/nginx_config.yml index 1390026..32be1a2 100644 --- a/roles/webserver/tasks/nginx_config.yml +++ b/roles/webserver/tasks/nginx_config.yml @@ -1,21 +1,21 @@ --- - name: Copy service folder copy: - src: "{{ services_dir }}/nginx" + src: "{{ services_dir }}/nginx-npm" dest: /services/ -- name: Copy nginx subfolder file - copy: - src: "{{ item }}/nginx.conf" - dest: "/nginx.../{{ item }}.config.conf" - with_items: "{{ services }}" +# - name: Copy nginx subfolder file +# copy: +# src: "{{ item }}/nginx.conf" +# dest: "/nginx.../{{ item }}.config.conf" +# with_items: "{{ services }}" -- name: Copy service folder - copy: - src: "{{ item }}/docker-compose.yml" - dest: /tmp/docker-compose.yml - with_items: "{{ services }}" +# - name: Copy service folder +# copy: +# src: "{{ item }}/docker-compose.yml" +# dest: /tmp/docker-compose.yml +# with_items: "{{ services }}" -- name: Start Docker compose +- name: Start NGINX community.docker.docker_compose: - project_src: "/services/nginx/" + project_src: "/services/nginx-npm/"