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/"