phdru.name debian_mirror=http://debian.mirror.cambrium.nl/debian
[all:vars]
-debian_distr=stretch
debian_mirror=http://mirror.yandex.ru/debian
install_recommends: no
name: ['g++', 'gcc', 'git',
'libexpat1', 'libffi6',
- 'libgdbm{% if debian_distr == "stretch" %}3{% elif debian_distr == "buster" %}6{% endif %}',
+ 'libgdbm{% if ansible_facts.distribution_major_version == "9" %}3{% elif ansible_facts.distribution_major_version == "10" %}6{% endif %}',
'libgmp10',
'liblzma5', 'libmpdec2', 'libreadline5', 'libreadline7',
'make', 'openssl', 'patch', 'sqlite3', 'zlib1g',
+{% if ansible_facts.distribution_major_version == '9' %}
+{% set debian_distr = 'stretch' %}
+{% elif ansible_facts.distribution_major_version == '10' %}
+{% set debian_distr = 'buster' %}
+{% endif %}
deb {{ debian_mirror }} {{ debian_distr }} main non-free contrib
deb {{ debian_mirror }} {{ debian_distr }}-updates main non-free contrib
]
state: latest
update_cache: yes
- when: debian_distr == "stretch"
+ when: ansible_facts.distribution_major_version == '9'
- name: Install development packages
become: true
-vbox-d9 ansible_host=localhost ansible_port=2022 debian_distr=stretch debian_mirror=http://mirror.yandex.ru/debian
-vbox-d10 ansible_host=localhost ansible_port=2022 debian_distr=buster debian_mirror=https://mirror.yandex.ru/debian
+vbox-d9 ansible_host=localhost ansible_port=2022 debian_mirror=http://mirror.yandex.ru/debian
+vbox-d10 ansible_host=localhost ansible_port=2022 debian_mirror=https://mirror.yandex.ru/debian
vbox-f30-64 ansible_host=localhost ansible_port=2022