fix: no_log only api_password for elasticsearch_template module
This commit is contained in:
parent
50fcc110b7
commit
c91f4dea5f
3 changed files with 2 additions and 2 deletions
|
@ -11,6 +11,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
- no_log only api_password for elasticsearch_template module
|
||||||
- add full python3 support
|
- add full python3 support
|
||||||
|
|
||||||
## v1.1.0 - 2019-11-21
|
## v1.1.0 - 2019-11-21
|
||||||
|
|
|
@ -77,7 +77,7 @@ def main():
|
||||||
'mappings': { 'type': 'dict', 'default': {} },
|
'mappings': { 'type': 'dict', 'default': {} },
|
||||||
'api_url': { 'type': 'str', 'default': 'http://127.0.0.1:9200' },
|
'api_url': { 'type': 'str', 'default': 'http://127.0.0.1:9200' },
|
||||||
'api_user': { 'type': 'str', 'default': None },
|
'api_user': { 'type': 'str', 'default': None },
|
||||||
'api_password': { 'type': 'str', 'default': None },
|
'api_password': { 'type': 'str', 'default': None, 'no_log': True },
|
||||||
}
|
}
|
||||||
module = AnsibleModule(argument_spec=fields)
|
module = AnsibleModule(argument_spec=fields)
|
||||||
changed = False
|
changed = False
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
index_patterns: '{{ item.value.index_patterns }}'
|
index_patterns: '{{ item.value.index_patterns }}'
|
||||||
settings: '{{ item.value.settings|default({}) }}'
|
settings: '{{ item.value.settings|default({}) }}'
|
||||||
mappings: '{{ item.value.mappings|default({}) }}'
|
mappings: '{{ item.value.mappings|default({}) }}'
|
||||||
no_log: true
|
|
||||||
loop: '{{ elasticsearch_index_templates|dict2items }}'
|
loop: '{{ elasticsearch_index_templates|dict2items }}'
|
||||||
run_once: true
|
run_once: true
|
||||||
tags: elasticsearch
|
tags: elasticsearch
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue