From 357c9c11b877312afa655b74407a60e4985ec52d Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Mon, 8 Jul 2024 16:27:55 +0200 Subject: [PATCH] FIx keycloak-operator role Signed-off-by: Christian Berendt --- ...-keycloak_operator.yml => kubernetes-keycloak-operator.yml} | 0 roles/keycloak_operator/defaults/main.yml | 2 +- roles/keycloak_operator/tasks/deploy.yml | 3 ++- 3 files changed, 3 insertions(+), 2 deletions(-) rename playbooks/{kubernetes-keycloak_operator.yml => kubernetes-keycloak-operator.yml} (100%) diff --git a/playbooks/kubernetes-keycloak_operator.yml b/playbooks/kubernetes-keycloak-operator.yml similarity index 100% rename from playbooks/kubernetes-keycloak_operator.yml rename to playbooks/kubernetes-keycloak-operator.yml diff --git a/roles/keycloak_operator/defaults/main.yml b/roles/keycloak_operator/defaults/main.yml index 744c56e..fd29258 100644 --- a/roles/keycloak_operator/defaults/main.yml +++ b/roles/keycloak_operator/defaults/main.yml @@ -9,6 +9,6 @@ operator_group: "{{ operator_user }}" # noqa var-naming[no-role-prefix] # keycloak-operator keycloak_operator_directory: /tmp/keycloak_operator -keycloak_operator_template_directory: +keycloak_operator_template_directory: . keycloak_operator_namespace: keycloak diff --git a/roles/keycloak_operator/tasks/deploy.yml b/roles/keycloak_operator/tasks/deploy.yml index 49c34de..f3c0851 100644 --- a/roles/keycloak_operator/tasks/deploy.yml +++ b/roles/keycloak_operator/tasks/deploy.yml @@ -1,6 +1,7 @@ --- - name: Apply keycloak-operator kubernetes manifest kubernetes.core.k8s: - definition: "{{ keycloak_operator_directory }}/keycloak-operator.yml" + namespace: "{{ keycloak_operator_namespace }}" + definition: "{{ lookup('file', keycloak_operator_directory + '/keycloak-operator.yml') | from_yaml_all }}" kubeconfig: /share/kubeconfig state: present