From d2d8ebd8cc150a8dbf46040cf21967290ea85613 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Mon, 17 Oct 2022 22:46:41 +0200 Subject: [PATCH] Add missing nginx-file --- netmaker_server/tasks/nginx.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 netmaker_server/tasks/nginx.yml 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