ansible-community / ansible-nomad

:watch: Ansible role for Nomad
https://galaxy.ansible.com/brianshumate/nomad
BSD 2-Clause "Simplified" License
294 stars 163 forks source link

Fixes custom RPC port for client. #138

Closed firke closed 2 years ago

firke commented 3 years ago

At the moment if server if configured with non-default RPC port, client will fail to connect server as when port is not specified it will default to 4647. From nomad docs:

This may be specified as an IP address or DNS, with or without the port. If the port is omitted, the default port of 4647 is used.

I've not added any conditionals since it is expected for RPC port to always be set, and setting explicit value even when using default values could be beneficial for visibility.