kasmtech / ansible

Example Ansible project for installing / managing Kasm Workspaces deployments
143 stars 34 forks source link

Ansible stops on 443 check #3

Open YurkoWasHere opened 1 year ago

YurkoWasHere commented 1 year ago

open 443 port is from docker that is installed by the same Ansible

TASK [install_common : Install agent role] **************************************************************************************************************************************************************************************************
fatal: [host.name.example]: FAILED! => {"attempts": 1, "changed": true, "cmd": ["bash", "xxxxxxxxxxxxxxxxxxxxxxxx"], "delta": "0:00:00.035838", "end": "2023-03-17 04:32:27.179383", "msg": "non-zero return code", "rc": 255, "start": "2023-03-17 04:32:27.143545", "stderr": "", "stderr_lines": [], "stdout": "Setting Role as agent\nSetting Public Hostname as xxx.xxx.xxx.xxx\nSetting Manager Hostname as xxx.xxx.xxx.xxx\nSetting Default Manager Token as FSVtf345dw63\nChecking if DEFAULT_PROXY_LISTENING_PORT (443) is free\nCOMMAND     PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME\ndocker-pr 24382 root    4u  IPv4 136309      0t0  TCP *:443 (LISTEN)\ndocker-pr 24387 root    4u  IPv6 137295      0t0  TCP *:443 (LISTEN)\nPort (443) is in use. Installation cannot continue.", "stdout_lines": ["Setting Role as agent", "Setting Public Hostname as xxx.xxx.xxx.xxx", "Setting Manager Hostname as xxx.xxx.xxx.xxx", "Setting Default Manager Token as FSVtf345dw63", "Checking if DEFAULT_PROXY_LISTENING_PORT (443) is free", "COMMAND     PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME", "docker-pr 24382 root    4u  IPv4 136309      0t0  TCP *:443 (LISTEN)", "docker-pr 24387 root    4u  IPv6 137295      0t0  TCP *:443 (LISTEN)", "Port (443) is in use. Installation cannot continue."]}
FlorianKrammel commented 1 year ago

Hi @YurkoWasHere ,

I've got the same issue. I didn't read the docs and did a "blind shot" for a test-environment on a single VM. It'll work with at least 3 hosts.

The nginx-proxy is probably the reason for conflicts if "web", "agent" and/or "guac" are on the same host. Port 443 is already in use.

The 'inventory' file should look like this:

[web]
host1
[db]
host1
[agent]
host2
[guac]
host3

I still didn't read the docs. The issue may or may not be well documented.

BG

Florian