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