From a0b5dcf06ea644a28f1344adddf9f4c8559d5302 Mon Sep 17 00:00:00 2001 From: abikouo Date: Fri, 10 Nov 2023 17:39:09 +0100 Subject: [PATCH] some ansible-lint fixes --- plugins/modules/helm_registry_auth.py | 35 +++++++++------------------ 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/plugins/modules/helm_registry_auth.py b/plugins/modules/helm_registry_auth.py index dbc6a4d052..9237d5dade 100644 --- a/plugins/modules/helm_registry_auth.py +++ b/plugins/modules/helm_registry_auth.py @@ -64,29 +64,18 @@ """ EXAMPLES = r""" -- hosts: localhost - tasks: - - block: - # It's good practice to store login credentials in a secure vault and not - # directly in playbooks. - - include_vars: helm_registry_passwords.yml - - - name: Login to remote registry - kubernetes.core.helm_registry_auth: - username: admin - password: "{{ helm_admin_password }}" - host: localhost:5000 - - - name: Download Chart from Registry - kubernetes.core.helm_pull: - chart_ref: mychart - repo_url: oci://localhost:5000/helm-charts - - always: - - name: Logout to Remote registry - kubernetes.core.helm_registry_auth: - host: localhost:5000 - state: absent +# Login to helm registry +- name: Login to remote registry + kubernetes.core.helm_registry_auth: + username: admin + password: "sample_password" + host: localhost:5000 + +# Logout from helm registry +- name: Logout to Remote registry + kubernetes.core.helm_registry_auth: + host: localhost:5000 + state: absent """ RETURN = r"""