Set sources.list on Debian 12

This commit is contained in:
Anthony Rose 2023-01-22 17:19:40 +00:00
parent b04b841b24
commit 16911213fc

View file

@ -19,12 +19,21 @@
src: sources.list.10 src: sources.list.10
dest: "/etc/apt/sources.list" dest: "/etc/apt/sources.list"
when: ansible_distribution_version == "10" when: ansible_distribution_version == "10"
- name: Set APT sources.list for Debian 11 - name: Set APT sources.list for Debian 11
become: true become: true
ansible.builtin.copy: ansible.builtin.copy:
src: sources.list.11 src: sources.list.11
dest: "/etc/apt/sources.list" dest: "/etc/apt/sources.list"
when: ansible_distribution_version == "11" when: ansible_distribution_version == "11"
- name: Set APT sources.list for Debian 12
become: true
ansible.builtin.copy:
src: sources.list.12
dest: "/etc/apt/sources.list"
when: ansible_distribution_version == "12"
- name: Update APT cache - name: Update APT cache
become: true become: true
ansible.builtin.apt: ansible.builtin.apt: