Skip to content

Commit

Permalink
loop_var
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaassssiiee committed Dec 16, 2024
1 parent 4b5bf8d commit 8f76b67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clusters.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
- name: Create namespace for KubeBlocks cluster
- name: "Create namespace {{ item.kb_cluster_ns }}"
kubernetes.core.k8s:
name: "{{ item.kb_cluster_ns }}"
api_version: v1
kind: Namespace
state: present

- name: Create the KubeBlocks cluster
- name: "Create {{ item.kb_cluster_type }} cluster {{ item.kb_cluster_name }}"
ansible.builtin.command:
cmd: "kbcli cluster create {{ item.kb_cluster_type }} {{ item.kb_cluster_name }} -n {{ item.kb_cluster_name }}"
cmd: "kbcli cluster create {{ item.kb_cluster_type }} {{ item.kb_cluster_name }} -n {{ item.kb_cluster_ns }}"

0 comments on commit 8f76b67

Please sign in to comment.