From dd69942b823cae00e7af6361641cd4a0a0c1f002 Mon Sep 17 00:00:00 2001
From: kaiyou <dev@kaiyou.fr>
Date: Mon, 18 Mar 2024 22:03:54 +0100
Subject: [PATCH] Hardcode the order bootstrap kustomizations are run in

---
 ansible/playbooks/bootstrap.yaml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/ansible/playbooks/bootstrap.yaml b/ansible/playbooks/bootstrap.yaml
index 22d30fd..bb7a101 100644
--- a/ansible/playbooks/bootstrap.yaml
+++ b/ansible/playbooks/bootstrap.yaml
@@ -76,9 +76,10 @@
   - name: Deploy bootstrap kustomizations
     # Sleep after applying, so that any CRD has time to settle down (the CRD registration
     # controller is on a fixed timer)
-    ansible.builtin.shell: "kubectl apply -k /tmp/hepto/{{ item.path }}; sleep 30"
-    with_community.general.filetree: "{{ playbook_dir }}/../../kustomizations"
-    when: item.state == 'directory'
+    ansible.builtin.shell: "kubectl apply -k /tmp/hepto/{{ item }}; sleep 30"
+    loop:
+    - calico
+    - bootstrap
     environment:
       KUBECONFIG: "{{ kubeconfig }}"
       
-- 
GitLab