Skip to content
Snippets Groups Projects
Commit 87d2a7b1 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Merge branch 'bugfix-duplicate-debian-repo' into 'master'

See merge request mediaserver/envsetup!10
parents 8b518bfa 566c1b46
No related branches found
No related tags found
No related merge requests found
......@@ -5,27 +5,26 @@
- not offline_mode | d(false)
- ansible_distribution == 'Ubuntu'
notify: update cache
apt_repository:
repo: "{{ item }}"
state: present
loop:
- deb {{ repos_prefix }}archive.ubuntu.com/ubuntu/ {{ repos_release }} main restricted universe multiverse
- deb {{ repos_prefix }}archive.ubuntu.com/ubuntu/ {{ repos_release }}-updates main restricted universe multiverse
- deb {{ repos_prefix }}archive.ubuntu.com/ubuntu/ {{ repos_release }}-backports main restricted universe multiverse
- deb {{ repos_prefix }}security.ubuntu.com/ubuntu {{ repos_release }}-security main restricted universe multiverse
copy:
dest: /etc/apt/sources.list
content: |
deb {{ repos_prefix }}archive.ubuntu.com/ubuntu/ {{ repos_release }} main restricted universe multiverse
deb {{ repos_prefix }}archive.ubuntu.com/ubuntu/ {{ repos_release }}-updates main restricted universe multiverse
deb {{ repos_prefix }}archive.ubuntu.com/ubuntu/ {{ repos_release }}-backports main restricted universe multiverse
deb {{ repos_prefix }}security.ubuntu.com/ubuntu {{ repos_release }}-security main restricted universe multiverse
- name: debian apt repo sources list
when:
- not offline_mode | d(false)
- ansible_distribution == 'Debian'
notify: update cache
apt_repository:
repo: "{{ item }}"
state: present
loop:
- deb {{ repos_prefix }}{{ repos_deb }}/debian {{ repos_release }} main contrib non-free
- deb {{ repos_prefix }}{{ repos_deb }}/debian {{ repos_release }}-updates main contrib non-free
- deb {{ repos_prefix }}{{ repos_deb_sec }}/debian-security {{ repos_release }}/updates main contrib non-free
copy:
dest: /etc/apt/sources.list
content: |
deb {{ repos_prefix }}{{ repos_deb }}/debian {{ repos_release }} main contrib non-free
deb {{ repos_prefix }}{{ repos_deb }}/debian {{ repos_release }}-updates main contrib non-free
deb {{ repos_prefix }}{{ repos_deb_sec }}/debian-security {{ repos_release }}/updates main contrib non-free
- name: add skyreach apt repo key
when:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment