Browse Source

Start nginx config

main
gabriel becker 1 year ago
parent
commit
bcc22d2d4b
  1. 2
      roles/webserver/tasks/main.yml
  2. 26
      roles/webserver/tasks/nginx_config.yml

2
roles/webserver/tasks/main.yml

@ -2,4 +2,4 @@
- include_tasks: dependencies.yml - include_tasks: dependencies.yml
- include_tasks: install_docker.yml - include_tasks: install_docker.yml
- include_tasks: start_service.yml - include_tasks: start_service.yml
# - include_tasks: nginx_config.yml - include_tasks: nginx_config.yml

26
roles/webserver/tasks/nginx_config.yml

@ -1,21 +1,21 @@
--- ---
- name: Copy service folder - name: Copy service folder
copy: copy:
src: "{{ services_dir }}/nginx" src: "{{ services_dir }}/nginx-npm"
dest: /services/ dest: /services/
- name: Copy nginx subfolder file # - name: Copy nginx subfolder file
copy: # copy:
src: "{{ item }}/nginx.conf" # src: "{{ item }}/nginx.conf"
dest: "/nginx.../{{ item }}.config.conf" # dest: "/nginx.../{{ item }}.config.conf"
with_items: "{{ services }}" # with_items: "{{ services }}"
- name: Copy service folder # - name: Copy service folder
copy: # copy:
src: "{{ item }}/docker-compose.yml" # src: "{{ item }}/docker-compose.yml"
dest: /tmp/docker-compose.yml # dest: /tmp/docker-compose.yml
with_items: "{{ services }}" # with_items: "{{ services }}"
- name: Start Docker compose - name: Start NGINX
community.docker.docker_compose: community.docker.docker_compose:
project_src: "/services/nginx/" project_src: "/services/nginx-npm/"

Loading…
Cancel
Save