diff --git a/netmaker_server/tasks/nginx.yml b/netmaker_server/tasks/nginx.yml new file mode 100644 index 0000000..b93eee0 --- /dev/null +++ b/netmaker_server/tasks/nginx.yml @@ -0,0 +1,10 @@ +- name: Start nginx service + command: "docker-compose --project-directory /opt/netmaker_server/ up -d nginx" + register: command + failed_when: command.rc != 0 + +- name: Waiting for nginx to accept connections + ansible.builtin.wait_for: + host: "{{ inventory_hostname }}" + port: 51820 + state: started