Skip to content
Snippets Groups Projects
Commit 5970e04f authored by Adrian Rixon's avatar Adrian Rixon
Browse files

Backup original APT sources.list once

Remove universe & multiverse from sources

	modified:   roles/apt-config/tasks/main.yml
parent a3fcaf4f
Branches
No related tags found
No related merge requests found
......@@ -18,3 +18,26 @@
mode: '0444'
tags:
- apt-config-auto
- name: backup APT sources
copy:
src: /etc/apt/sources.list
dest: /etc/apt/sources.list.orig
force: no
tags:
- apt-config-sources
- name: disable universe & multiverse sources
apt_repository:
repo: "{{ item }}"
state: absent
with_items:
- "deb http://gb.archive.ubuntu.com/ubuntu/ bionic universe"
- "deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates universe"
- "deb http://gb.archive.ubuntu.com/ubuntu/ bionic multiverse"
- "deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates multiverse"
- "deb http://gb.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse"
- "deb http://security.ubuntu.com/ubuntu bionic-security universe"
- "deb http://security.ubuntu.com/ubuntu bionic-security multiverse"
tags:
- apt-config-sources
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment