diff --git a/tasks/repository.yml b/tasks/repository.yml index 7724076..764f416 100644 --- a/tasks/repository.yml +++ b/tasks/repository.yml @@ -30,7 +30,7 @@ - name: repository | add ansible.builtin.apt_repository: repo: "{{ item.type }} {{ item.url }} {{ item.component }}" - state: present + state: "{{ item.state | default('present') }}" update_cache: true mode: 0644 with_items: "{{ virtualbox_repositories }}"