Use _release instead of _version
In testing, only the codename is filled out, so ansible_distribution_version ends up being "n/a".
This commit is contained in:
parent
16911213fc
commit
aea8c043d8
2 changed files with 6 additions and 5 deletions
|
@ -18,21 +18,21 @@
|
|||
ansible.builtin.copy:
|
||||
src: sources.list.10
|
||||
dest: "/etc/apt/sources.list"
|
||||
when: ansible_distribution_version == "10"
|
||||
when: ansible_distribution_release == "buster"
|
||||
|
||||
- name: Set APT sources.list for Debian 11
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
src: sources.list.11
|
||||
dest: "/etc/apt/sources.list"
|
||||
when: ansible_distribution_version == "11"
|
||||
when: ansible_distribution_release == "bullseye"
|
||||
|
||||
- name: Set APT sources.list for Debian 12
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
src: sources.list.12
|
||||
dest: "/etc/apt/sources.list"
|
||||
when: ansible_distribution_version == "12"
|
||||
when: ansible_distribution_release == "bookworm"
|
||||
|
||||
- name: Update APT cache
|
||||
become: true
|
||||
|
|
|
@ -19,11 +19,12 @@
|
|||
src: debian-11-add-lv5-rctrl-switch.patch
|
||||
basedir: /usr/share/X11/xkb/rules
|
||||
strip: 1
|
||||
when: ansible_distribution_version == "11"
|
||||
when: ansible_distribution_release == "bullseye"
|
||||
|
||||
- name: Enable lv5:rctrl_switch on Debian 12
|
||||
become: true
|
||||
ansible.posix.patch:
|
||||
src: debian-12-add-lv5-rctrl-switch.patch
|
||||
basedir: /usr/share/X11/xkb/rules
|
||||
strip: 1
|
||||
when: ansible_distribution_version == "12"
|
||||
when: ansible_distribution_release == "bookworm"
|
||||
|
|
Loading…
Reference in a new issue