diff --git a/roles/debian/tasks/apt-sources.yml b/roles/debian/tasks/apt-sources.yml new file mode 100644 index 0000000..589bb40 --- /dev/null +++ b/roles/debian/tasks/apt-sources.yml @@ -0,0 +1,20 @@ +--- +# Copyright 2021 Anthony Perkins +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +- name: Add to-do list launcher + become: true + ansible.builtin.template: + src: sources.list + dest: "/etc/apt/sources.list" diff --git a/roles/debian/tasks/main.yml b/roles/debian/tasks/main.yml index 6189a13..cd25f2c 100644 --- a/roles/debian/tasks/main.yml +++ b/roles/debian/tasks/main.yml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +- include: apt-sources.yml - include: packages-cli.yml - include: packages-gui.yml when: gui == true diff --git a/roles/debian/templates/sources.list b/roles/debian/templates/sources.list new file mode 100644 index 0000000..7c52a91 --- /dev/null +++ b/roles/debian/templates/sources.list @@ -0,0 +1,8 @@ +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