Skip to content

Commit

Permalink
Merge pull request #386 from fao89/cephexclude
Browse files Browse the repository at this point in the history
Speed up Ceph exclude task
  • Loading branch information
openshift-ci[bot] authored Oct 3, 2023
2 parents fc1fb80 + 5d434db commit 74f9bd6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions roles/edpm_container_manage/tasks/delete_orphan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@

- name: Exclude Ceph containers from podman container list
ansible.builtin.set_fact:
filtered_containers: "{{ filtered_containers | default([]) + [item] }}"
when:
- not (item['Name'] | regex_search('^ceph.*'))
loop: "{{ podman_containers.containers }}"
no_log: true
filtered_containers: "{{ podman_containers.containers | select('match', '^(?!.*(ceph))') | list }}"

- name: "Delete orphan containers managed by Podman for {{ edpm_container_manage_config }}"
when:
Expand Down

0 comments on commit 74f9bd6

Please sign in to comment.