Move from sources.list to debian.sources
This commit is contained in:
parent
7f7b6fbc40
commit
f63860d9ce
3 changed files with 28 additions and 11 deletions
11
roles/debian/files/debian.sources.12
Normal file
11
roles/debian/files/debian.sources.12
Normal file
|
@ -0,0 +1,11 @@
|
|||
Types: deb deb-src
|
||||
URIs: http://deb.debian.org/debian
|
||||
Suites: bookworm bookworm-updates
|
||||
Components: main non-free-firmware
|
||||
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
||||
|
||||
Types: deb deb-src
|
||||
URIs: http://security.debian.org/debian-security/
|
||||
Suites: bookworm-security
|
||||
Components: main non-free-firmware
|
||||
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
|
@ -1,8 +0,0 @@
|
|||
deb http://deb.debian.org/debian/ bookworm main non-free-firmware
|
||||
deb-src http://deb.debian.org/debian/ bookworm main non-free-firmware
|
||||
|
||||
deb http://deb.debian.org/debian/ bookworm-updates main non-free-firmware
|
||||
deb-src http://deb.debian.org/debian/ bookworm-updates main non-free-firmware
|
||||
|
||||
deb http://security.debian.org/debian-security/ bookworm-security main non-free-firmware
|
||||
deb-src http://security.debian.org/debian-security/ bookworm-security main non-free-firmware
|
|
@ -13,6 +13,13 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- name: Create /etc/apt/sources.list.d
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: /etc/apt/sources.list.d
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Set APT sources.list for Debian 10
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
|
@ -27,11 +34,18 @@
|
|||
dest: "/etc/apt/sources.list"
|
||||
when: ansible_distribution_release == "bullseye"
|
||||
|
||||
- name: Set APT sources.list for Debian 12
|
||||
- name: Set APT debian.sources for Debian 12
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
src: sources.list.12
|
||||
dest: "/etc/apt/sources.list"
|
||||
src: debian.sources.12
|
||||
dest: "/etc/apt/sources.list.d/debian.sources"
|
||||
when: ansible_distribution_release == "bookworm"
|
||||
|
||||
- name: Remove /etc/apt/sources.list for Debian 12
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: /etc/apt/sources.list
|
||||
state: absent
|
||||
when: ansible_distribution_release == "bookworm"
|
||||
|
||||
- name: Update APT cache
|
||||
|
|
Loading…
Reference in a new issue