From f3be7f5c9e469200b4f42b7dd2e3d457f6abcc3d Mon Sep 17 00:00:00 2001 From: "Sergey Bubnov (omg)" Date: Thu, 27 Jun 2019 14:15:59 +0400 Subject: [PATCH] fix apt.sources template --- roles/common/templates/apt.list.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/common/templates/apt.list.j2 b/roles/common/templates/apt.list.j2 index eb60ba9..992a5c3 100644 --- a/roles/common/templates/apt.list.j2 +++ b/roles/common/templates/apt.list.j2 @@ -1,6 +1,6 @@ # {{ansible_managed}} -{% set key = env.apt.sources[item][node.platform].key_name %} -{% set bp = env.apt.sources[item][node.platform].branch_prefix %} +{% set key = env.apt[node.platform].key_name %} +{% set bp = env.apt[node.platform].branch_prefix %} {% if node.platform is defined %} rpm [{{key}}] {{env.apt.sources[item].url}} {{bp}}/branch/{{node.arch}} classic