diff --git a/tasks/setup-repository-Debian.yml b/tasks/setup-repository-Debian.yml index 3e7522f..d924969 100644 --- a/tasks/setup-repository-Debian.yml +++ b/tasks/setup-repository-Debian.yml @@ -60,7 +60,7 @@ _docker_enable_channels: "{{ docker_channels | intersect(_docker_merged_channels) }}" vars: _docker_mandatory_channel: [] - _docker_merged_channels: "{{ _docker_mandatory_channel }} + [ '{{ docker_channel }}' ]" + _docker_merged_channels: "{{ _docker_mandatory_channel + [docker_channel] }}" - name: Add Docker CE repository with correct channels (Ubuntu/Debian) become: true diff --git a/tasks/setup-repository-RedHat.yml b/tasks/setup-repository-RedHat.yml index 5c5a965..5821f4c 100644 --- a/tasks/setup-repository-RedHat.yml +++ b/tasks/setup-repository-RedHat.yml @@ -26,7 +26,7 @@ _docker_enable_channels: "{{ docker_channels | intersect(_docker_merged_channels) }}" vars: _docker_mandatory_channel: [] - _docker_merged_channels: "{{ _docker_mandatory_channel }} + [ '{{ docker_channel }}' ]" + _docker_merged_channels: "{{ _docker_mandatory_channel + [docker_channel] }}" - name: Add Docker CE repository when: