From 6f324a822803a4c495a885214030aa6ecf4cfb0a Mon Sep 17 00:00:00 2001 From: Andrew Klychkov Date: Fri, 26 Mar 2021 08:11:04 +0100 Subject: [PATCH] hcloud_certificate, hcloud_server: define no_log values for private_key and ssh_keys parameters --- plugins/modules/hcloud_certificate.py | 2 +- plugins/modules/hcloud_server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/modules/hcloud_certificate.py b/plugins/modules/hcloud_certificate.py index 7c827ef..381a089 100644 --- a/plugins/modules/hcloud_certificate.py +++ b/plugins/modules/hcloud_certificate.py @@ -232,7 +232,7 @@ class AnsibleHcloudCertificate(Hcloud): id={"type": "int"}, name={"type": "str"}, certificate={"type": "str"}, - private_key={"type": "str"}, + private_key={"type": "str", "no_log": True}, labels={"type": "dict"}, state={ "choices": ["absent", "present"], diff --git a/plugins/modules/hcloud_server.py b/plugins/modules/hcloud_server.py index f96c3d0..25e8445 100644 --- a/plugins/modules/hcloud_server.py +++ b/plugins/modules/hcloud_server.py @@ -563,7 +563,7 @@ class AnsibleHcloudServer(Hcloud): location={"type": "str"}, datacenter={"type": "str"}, user_data={"type": "str"}, - ssh_keys={"type": "list", "elements": "str"}, + ssh_keys={"type": "list", "elements": "str", "no_log": False}, volumes={"type": "list", "elements": "str"}, firewalls={"type": "list", "elements": "str"}, labels={"type": "dict"},