From 276f7122cd49b547803ba14dc9f931d6abc2af2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Moser?= Date: Thu, 21 Dec 2017 07:04:45 +0100 Subject: [PATCH] influxdb: default hostname to localhost (#34117) --- lib/ansible/module_utils/influxdb.py | 2 +- lib/ansible/utils/module_docs_fragments/influxdb.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/influxdb.py b/lib/ansible/module_utils/influxdb.py index 9099b92ecd4..441de1d8827 100644 --- a/lib/ansible/module_utils/influxdb.py +++ b/lib/ansible/module_utils/influxdb.py @@ -40,7 +40,7 @@ class InfluxDb(): @staticmethod def influxdb_argument_spec(): return dict( - hostname=dict(required=True, type='str'), + hostname=dict(default='localhost', type='str'), port=dict(default=8086, type='int'), username=dict(default='root', type='str'), password=dict(default='root', type='str', no_log=True), diff --git a/lib/ansible/utils/module_docs_fragments/influxdb.py b/lib/ansible/utils/module_docs_fragments/influxdb.py index f600e5a5f31..ca4241177d4 100644 --- a/lib/ansible/utils/module_docs_fragments/influxdb.py +++ b/lib/ansible/utils/module_docs_fragments/influxdb.py @@ -10,7 +10,8 @@ options: hostname: description: - The hostname or IP address on which InfluxDB server is listening - required: true + - Since version 2.5, defaulted to localhost. + default: localhost username: description: - Username that will be used to authenticate against InfluxDB server