forked from saratov/infra
use keyname and branch prefix from env
This commit is contained in:
parent
d89c7ab77e
commit
a9f3258cd9
@ -1,7 +1,10 @@
|
|||||||
# {{ansible_managed}}
|
# {{ansible_managed}}
|
||||||
|
{% set key = env.apt.sources[item][node.platform].key_name %}
|
||||||
|
{% set bp = env.apt.sources[item][node.platform].branch_prefix %}
|
||||||
|
|
||||||
{% if node.platform is defined %}
|
{% if node.platform is defined %}
|
||||||
rpm [{{node.platform}}] {{env.apt.sources[item].url}} {{node.platform}}/branch/{{node.arch}} classic
|
rpm [{{key}}] {{env.apt.sources[item].url}} {{bp}}/branch/{{node.arch}} classic
|
||||||
rpm [{{node.platform}}] {{env.apt.sources[item].url}} {{node.platform}}/branch/noarch classic
|
rpm [{{key}}] {{env.apt.sources[item].url}} {{bp}}/branch/noarch classic
|
||||||
{% else %}
|
{% else %}
|
||||||
rpm http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus x86_64 classic
|
rpm http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus x86_64 classic
|
||||||
rpm http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus noarch classic
|
rpm http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus noarch classic
|
||||||
|
Loading…
Reference in New Issue
Block a user