Commit db622999 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

Use ansible_distribution_release for repo config

parent d6e7e074
Pipeline #2182 passed with stage
in 52 seconds
......@@ -5,7 +5,7 @@
- name: enable debian repositories
apt_repository:
state: present
repo: "deb{{ src }} {{ apt_mirror }} {{ debian_version }}{{ item[1] }} {{ item[0] }}"
repo: "deb{{ src }} {{ apt_mirror }} {{ ansible_distribution_release }}{{ item[1] }} {{ item[0] }}"
with_nested:
- "{{ apt_repos }}"
- "{{ apt_sets|union([''])|unique }}"
......@@ -18,7 +18,7 @@
- name: disable debian repositories unused sets
apt_repository:
state: absent
repo: "deb{{ src }} {{ apt_mirror }} {{ debian_version }}{{ item[1] }} {{ item[0] }}"
repo: "deb{{ src }} {{ apt_mirror }} {{ ansible_distribution_release }}{{ item[1] }} {{ item[0] }}"
with_nested:
- "{{ apt_repos }}"
- "{{ ['', '-updates', '-backports', '-proposed-updates']|difference(apt_sets|union([''])) }}"
......@@ -31,7 +31,7 @@
- name: disable debian repositories unused repos
apt_repository:
state: absent
repo: "deb{{ src }} {{ apt_mirror }} {{ debian_version }}{{ item[1] }} {{ item[0] }}"
repo: "deb{{ src }} {{ apt_mirror }} {{ ansible_distribution_release }}{{ item[1] }} {{ item[0] }}"
with_nested:
- "{{ ['main', 'contrib', 'non-free']|difference(apt_repos) }}"
- ['', '-updates', '-backports', '-proposed-updates']
......@@ -44,7 +44,7 @@
- name: enable debian security repositories
apt_repository:
state: present
repo: "deb{{ src }} {{ apt_mirror_security }} {{ debian_version }}{{ item[1] }} {{ item[0] }}"
repo: "deb{{ src }} {{ apt_mirror_security }} {{ ansible_distribution_release }}{{ item[1] }} {{ item[0] }}"
with_nested:
- "{{ apt_repos }}"
- ['/updates']
......@@ -58,7 +58,7 @@
- name: disable debian security repositories unused repos
apt_repository:
state: absent
repo: "deb{{ src }} {{ apt_mirror_security }} {{ debian_version }}{{ item[1] }} {{ item[0] }}"
repo: "deb{{ src }} {{ apt_mirror_security }} {{ ansible_distribution_release }}{{ item[1] }} {{ item[0] }}"
with_nested:
- "{{ ['main', 'contrib', 'non-free']|difference(apt_repos) }}"
- ['/updates']
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment