Skip to content

Commit

Permalink
Kubeblocks depends on kbcli, using desired_state.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaassssiiee committed Jan 10, 2025
1 parent ff936bb commit 4f775a2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion kubeblocks.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/usr/bin/env ansible-playbook
---
- name: Manage kbcli
- name: Install kbcli
hosts: controller
become: true
tasks:
- name: Configure KubeBlocks
when: desired_state == 'present'
ansible.builtin.include_role:
name: clusterlust.kbcli

Expand All @@ -21,3 +22,12 @@
- name: Configure KubeBlocks
ansible.builtin.include_role:
name: clusterlust.kubeblocks

- name: Remove kbcli
hosts: controller
become: true
tasks:
- name: Configure KubeBlocks
when: desired_state == 'absent'
ansible.builtin.include_role:
name: clusterlust.kbcli

0 comments on commit 4f775a2

Please sign in to comment.