Skip to content

Commit

Permalink
no loops
Browse files Browse the repository at this point in the history
  • Loading branch information
ripleymj committed Feb 6, 2024
1 parent 7ab955e commit bcdbee5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions roles/oem/tasks/vm_only_pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
manager: auto
- name: Remove unneeded backgrounds
ansible.builtin.apt:
name: '{{ item }}'
name: "{{ ansible_facts.packages | select('search', 'mint-background') | 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"'
Expand Down

0 comments on commit bcdbee5

Please sign in to comment.