diff --git a/plugins/modules/clickhouse_user.py b/plugins/modules/clickhouse_user.py index bb81e2e..1b1e7e7 100644 --- a/plugins/modules/clickhouse_user.py +++ b/plugins/modules/clickhouse_user.py @@ -224,9 +224,12 @@ def main(): state=dict(type='str', choices=['present', 'absent'], default='present'), name=dict(type='str', required=True), password=dict(type='str', default=None, no_log=True), - type_password=dict(type='str', default='sha256_password', no_log=True), + type_password=dict(type='str', default='sha256_password', no_log=False), cluster=dict(type='str', default=None), - update_password=dict(type='str', choices=['always', 'on_create'], default='on_create'), + update_password=dict( + type='str', choices=['always', 'on_create'], + default='on_create', no_log=False + ), ) # Instantiate an object of module class diff --git a/tests/integration/targets/clickhouse_user/tasks/initial.yml b/tests/integration/targets/clickhouse_user/tasks/initial.yml index 48895a5..7871668 100644 --- a/tests/integration/targets/clickhouse_user/tasks/initial.yml +++ b/tests/integration/targets/clickhouse_user/tasks/initial.yml @@ -16,7 +16,7 @@ ansible.builtin.assert: that: - result is changed - - result.executed_statements == ["CREATE USER test_user IDENTIFIED WITH ******** BY '********'"] + - result.executed_statements == ["CREATE USER test_user IDENTIFIED WITH sha256_password BY '********'"] - name: Test 1 - Check the actual state register: result @@ -118,7 +118,7 @@ ansible.builtin.assert: that: - result is changed - - result.executed_statements == ["ALTER USER test_user IDENTIFIED WITH ******** BY '********'"] + - result.executed_statements == ["ALTER USER test_user IDENTIFIED WITH sha256_password BY '********'"] - name: Drop test_user community.clickhouse.clickhouse_user: