Skip to content

Commit

Permalink
no loops
Browse files Browse the repository at this point in the history
  • Loading branch information
ripleymj committed Feb 7, 2024
1 parent 7ab955e commit ef7817e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions roles/oem/tasks/vm_only_pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
manager: auto
- name: Remove unneeded backgrounds
ansible.builtin.apt:
name: '{{ item }}'
name: "{{ ansible_facts.packages | select('search', 'mint-background') | reject('search', ansible_distribution_release) | list }}"
state: absent
purge: yes
loop: "{{ ansible_facts.packages | select('search', 'mint-background') | list }}"
when:
- 'ansible_distribution_release not in item'
- 'ansible_distribution == "Linux Mint"'

- name: Remove unneeded stock packages
Expand Down

0 comments on commit ef7817e

Please sign in to comment.