dotfiles/roles/os_deb/tasks/repositories.yml
Matej Focko 7e1d9a7fc3
feat(os_deb): create role for setting apt repos
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-26 15:42:04 +01:00

18 lines
949 B
YAML

---
- name: Disable installation DVD as a source
ansible.builtin.lineinfile:
path: /etc/apt/sources.list
regexp: "^deb cdrom:"
state: absent
- name: Enable additional repository
ansible.builtin.apt_repository:
repo: "{{ item }}"
state: present
loop:
- deb http://ftp.sk.debian.org/debian/ {{ ansible_facts.distribution_release }} contrib non-free
- deb-src http://ftp.sk.debian.org/debian/ {{ ansible_facts.distribution_release }} contrib non-free
- deb http://security.debian.org/debian-security {{ ansible_facts.distribution_release }}-security contrib non-free
- deb-src http://security.debian.org/debian-security {{ ansible_facts.distribution_release }}-security contrib non-free
- deb http://ftp.sk.debian.org/debian/ {{ ansible_facts.distribution_release }}-updates contrib non-free
- deb-src http://ftp.sk.debian.org/debian/ {{ ansible_facts.distribution_release }}-updates contrib non-free