mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2025-10-15 11:15:35 +02:00
fix: construct proper docker apt repo line with release channel and distribution variable
This commit is contained in:
parent
c77727b122
commit
31a1e4d26d
@ -103,8 +103,9 @@
|
|||||||
ansible.builtin.apt_repository:
|
ansible.builtin.apt_repository:
|
||||||
repo: >-
|
repo: >-
|
||||||
deb [arch={{ ansible_facts.architecture }}]
|
deb [arch={{ ansible_facts.architecture }}]
|
||||||
{{ docker_repo_url }}/{{ ansible_facts['distribution'] | lower }}
|
{{ docker_repo_url }}/{{ docker_apt_ansible_distribution | lower }}
|
||||||
{{ ansible_facts['lsb']['codename'] | default(ansible_facts.get('distribution_release', '')) }}
|
{{ ansible_facts['lsb']['codename'] | default(ansible_facts.get('distribution_release', '')) }}
|
||||||
|
{{ docker_apt_release_channel }}
|
||||||
filename: "{{ docker_apt_filename }}"
|
filename: "{{ docker_apt_filename }}"
|
||||||
state: present
|
state: present
|
||||||
when: docker_add_repo | bool and ansible_facts.os_family == 'Debian'
|
when: docker_add_repo | bool and ansible_facts.os_family == 'Debian'
|
||||||
|
Loading…
Reference in New Issue
Block a user