Handle sources.list for Debian 10 and 11
This commit is contained in:
parent
7b210c28d9
commit
49cc40e756
5 changed files with 27 additions and 13 deletions
8
roles/debian/files/sources.list.10
Normal file
8
roles/debian/files/sources.list.10
Normal file
|
@ -0,0 +1,8 @@
|
|||
deb http://deb.debian.org/debian/ buster main non-free contrib
|
||||
deb-src http://deb.debian.org/debian/ buster main non-free contrib
|
||||
|
||||
deb http://deb.debian.org/debian/ buster-updates main non-free contrib
|
||||
deb-src http://deb.debian.org/debian/ buster-updates main non-free contrib
|
||||
|
||||
deb http://deb.debian.org/debian-security/ buster/updates main non-free contrib
|
||||
deb-src http://deb.debian.org/debian-security/ buster/updates main non-free contrib
|
8
roles/debian/files/sources.list.11
Normal file
8
roles/debian/files/sources.list.11
Normal file
|
@ -0,0 +1,8 @@
|
|||
deb http://deb.debian.org/debian/ bullseye main non-free contrib
|
||||
deb-src http://deb.debian.org/debian/ bullseye main non-free contrib
|
||||
|
||||
deb http://deb.debian.org/debian/ bullseye-updates main non-free contrib
|
||||
deb-src http://deb.debian.org/debian/ bullseye-updates main non-free contrib
|
||||
|
||||
deb http://deb.debian.org/debian-security/ bullseye-security main non-free contrib
|
||||
deb-src http://deb.debian.org/debian-security/ bullseye-security main non-free contrib
|
|
@ -13,11 +13,18 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- name: Set APT sources.list
|
||||
- name: Set APT sources.list for Debian 10
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: sources.list
|
||||
ansible.builtin.copy:
|
||||
src: sources.list.10
|
||||
dest: "/etc/apt/sources.list"
|
||||
when: ansible_distribution_version == "10"
|
||||
- name: Set APT sources.list for Debian 11
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
src: sources.list.11
|
||||
dest: "/etc/apt/sources.list"
|
||||
when: ansible_distribution_version == "11"
|
||||
- name: Update APT cache
|
||||
become: true
|
||||
ansible.builtin.apt:
|
||||
|
|
|
@ -13,8 +13,7 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# apt-sources.yml is disabled until Debian bullseye is released.
|
||||
#- include: apt-sources.yml
|
||||
- include: apt-sources.yml
|
||||
- include: packages-cli.yml
|
||||
- include: packages-gui.yml
|
||||
when: gui == true
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
deb http://deb.debian.org/debian/ {{ ansible_distribution_release }} main non-free contrib
|
||||
deb-src http://deb.debian.org/debian/ {{ ansible_distribution_release }} main non-free contrib
|
||||
|
||||
deb http://deb.debian.org/debian/ {{ ansible_distribution_release }}-updates main non-free contrib
|
||||
deb-src http://deb.debian.org/debian/ {{ ansible_distribution_release }}-updates main non-free contrib
|
||||
|
||||
deb http://deb.debian.org/debian-security/ {{ ansible_distribution_release }}-security main non-free contrib
|
||||
deb-src http://deb.debian.org/debian-security/ {{ ansible_distribution_release }}-security main non-free contrib
|
Loading…
Reference in a new issue