Skip to content

Commit

Permalink
Fix patch removal task on check mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Tassatux committed Dec 6, 2024
1 parent 60752bc commit a1ccba8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roles/control_plane_patches/tasks/patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
path: '{{ item }}'
state: 'absent'
register: kubeadm_removed_patches
when: not ansible_check_mode
with_items: >-
{{ kubeadm_current_patches.files|map(attribute="path")|list
|difference(kubeadm_deployed_patches.results|map(attribute="dest")|list) }}
Expand Down

0 comments on commit a1ccba8

Please sign in to comment.