# SPDX-License-Identifier: MIT - name: 'Set correct repositories' loop_control: loop_var: 'repo' index_var: 'i' label: 'Make sure the ''{{ repo.name }}.source'' repo file is {% if repo.state == ''absent'' %}absent{% else %}present ({% if repo.enabled %}and enabled{% else %}but disabled{% endif %}){% endif %}, this has the {{ repo.description }}' loop: '{{ deb822_repos }}' ansible.builtin.deb822_repository: name: '{{ repo.name }}' enabled: '{{ repo.enabled }}' state: '{{ repo.state | default(''present'') }}' types: '{{ repo.types }}' uris: '{{ repo.uris }}' suites: '{{ repo.suites }}' components: '{{ repo.components }}' signed_by: '{{ repo.signed_by }}' notify: - 'apt-get update'