Skip to content

Commit

Permalink
feat: ⚡ Display tags list + tags optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-montagne committed May 11, 2023
1 parent 1daf512 commit 54d9112
Showing 1 changed file with 30 additions and 4 deletions.
34 changes: 30 additions & 4 deletions admin-tools/get-credentials.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,24 @@
gather_facts: false
tasks:

- name: Display tags list
ansible.builtin.debug:
msg:
- "List of available tags for convenience"
- "(Can also be retrieved with the --list-tags option on ansible-playbook run) :"
- ""
- "keycloak"
- "nexus"
- "sonar (or sonarqube)"
- "gitlab"
- "vault"
- "sops"
- "argo (or argocd)"
- "harbor"
- "console (or console-pi)"
tags:
- always

- name: Get socle config
kubernetes.core.k8s_info:
kind: ConfigMap
Expand Down Expand Up @@ -43,14 +61,22 @@
name: credential-dso-adminexample.com-{{ KEYCLOAK_NAMESPACE }}
register: keycloak_user_creds
tags:
- always
- gitlab
- argo
- argocd
- console
- console-pi

- name: Set Keycloak user facts
- name: Set Keycloak DSO user facts
ansible.builtin.set_fact:
keycloak_user: "{{ keycloak_user_creds.resources[0].data.username | b64decode }}"
keycloak_user_password: "{{ keycloak_user_creds.resources[0].data.password | b64decode }}"
tags:
- always
- gitlab
- argo
- argocd
- console
- console-pi

- name: Get Keycloak ingress
kubernetes.core.k8s_info:
Expand Down Expand Up @@ -160,8 +186,8 @@
- "Admin username: {{ keycloak_user }} "
- "Admin password: {{ keycloak_user_password }} "
tags:
- argocd
- argo
- argocd

- name: Display Harbor URL and credentials
ansible.builtin.debug:
Expand Down

0 comments on commit 54d9112

Please sign in to comment.