Skip to content

Commit

Permalink
desired_state
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaassssiiee committed Jan 10, 2025
1 parent 8f57902 commit 477d6a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kubeblocks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
become: true
tasks:
- name: Configure KubeBlocks
when: desired_state == 'present'
when: (desired_state is not defined) or (desired_state == 'present')
ansible.builtin.include_role:
name: clusterlust.kbcli

Expand All @@ -28,6 +28,6 @@
become: true
tasks:
- name: Configure KubeBlocks
when: desired_state == 'absent'
when: (desired_state is defined) and (desired_state == 'absent')
ansible.builtin.include_role:
name: clusterlust.kbcli

0 comments on commit 477d6a1

Please sign in to comment.