mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-04 23:39:09 -07:00
Add nomad_job port parameter (#7412)
* Add nomad_job port parameter * Add changelog frag * Update doc frag * Fix trailing whitespace * Add port to nomad_info * Update changelogs/fragments/7412-add-port-for-nomad-connection.yaml Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/doc_fragments/nomad.py Co-authored-by: Felix Fontein <felix@fontein.de> * Add space * Remove trailing whitespace --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
58846a6203
commit
714e06089e
4 changed files with 20 additions and 0 deletions
|
@ -281,6 +281,7 @@ def run():
|
|||
module = AnsibleModule(
|
||||
argument_spec=dict(
|
||||
host=dict(required=True, type='str'),
|
||||
port=dict(type='int', default=4646),
|
||||
use_ssl=dict(type='bool', default=True),
|
||||
timeout=dict(type='int', default=5),
|
||||
validate_certs=dict(type='bool', default=True),
|
||||
|
@ -300,6 +301,7 @@ def run():
|
|||
|
||||
nomad_client = nomad.Nomad(
|
||||
host=module.params.get('host'),
|
||||
port=module.params.get('port'),
|
||||
secure=module.params.get('use_ssl'),
|
||||
timeout=module.params.get('timeout'),
|
||||
verify=module.params.get('validate_certs'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue