Install development packages: headers and libraries.
Split roles `dev-packages` into `python-dev-packages`.
autoremove: yes
cache_valid_time: 3600
install_recommends: no
- name: ['gcc', 'g++', 'git', 'make',
+ name: ['g++', 'gcc', 'git',
+ 'libexpat1', 'libffi6',
+ 'libgdbm{% if debian_distr == "stretch" %}3{% elif debian_distr == "buster" %}6{% endif %}',
+ 'libgmp10',
+ 'liblzma5', 'libmpdec2', 'libreadline5', 'libreadline7',
+ 'make', 'openssl', 'patch', 'sqlite3', 'zlib1g',
]
state: latest
update_cache: yes
- name: locales
import_tasks: locales.yml
-
-- name: Python
- import_tasks: python.yml
--- /dev/null
+Install Python development packages.
--- /dev/null
+dependencies: ['dev-packages', 'python-packages']
--- /dev/null
+- name: Install development packages For Debbian 9 stretch
+ become: true
+ apt:
+ autoclean: yes
+ autoremove: yes
+ cache_valid_time: 3600
+ install_recommends: no
+ name: ['libssl1.0-dev', 'libssl1.0.2',
+ ]
+ state: latest
+ update_cache: yes
+ when: debian_distr == "stretch"
+
+- name: Install development packages
+ become: true
+ apt:
+ autoclean: yes
+ autoremove: yes
+ cache_valid_time: 3600
+ install_recommends: no
+ name: ['libbz2-dev', 'libexpat1-dev', 'libffi-dev',
+ 'libgdbm-dev', 'libgmp-dev', 'libmpdec-dev', 'liblzma-dev',
+ 'libncurses5', 'libncurses5-dev', 'libncursesw5', 'libncursesw5-dev',
+ 'libpython-dev', 'libpython3-dev', 'libreadline-dev',
+ 'libsqlite3-dev', 'libssl-dev', 'libssl1.1',
+ 'python-dev', 'python3-dev', 'zlib1g-dev',
+ ]
+ state: latest
+ update_cache: yes
--- /dev/null
+Install Python packages.
install_recommends: no
name: ['python', 'python2.7', 'python3', 'python-pip', 'python3-pip',
'python-setuptools', 'python3-setuptools',
+ 'python-gdbm', 'python-openssl', 'python3-openssl',
]
state: latest
update_cache: yes
- name: Install development packages
become: true
dnf:
- name: ['gcc', 'gcc-c++', 'git', 'make',
+ name: ['expat', 'gcc', 'gcc-c++',
+ 'gdbm', 'gdbm-libs', 'git', 'gmp',
+ 'libffi', 'lzma-sdk', 'make', 'mpdecimal',
+ 'openssl', 'patch', 'readline', 'sqlite', 'zlib',
]
state: latest
update_cache: yes
- name: packages
import_tasks: dnf.yml
-
-- name: Python
- import_tasks: python.yml
--- /dev/null
+Install development packages.
--- /dev/null
+dependencies: ['dev-packages', 'python-packages']
--- /dev/null
+- name: Install development packages
+ become: true
+ dnf:
+ name: ['bzip2-devel', 'expat-devel', 'gdbm-devel', 'gmp-devel',
+ 'libffi-devel', 'lzma-sdk-devel', 'mpdecimal-devel',
+ 'ncurses-devel', 'ncurses-libs', 'openssl-devel', 'openssl-libs',
+ 'python2-devel', 'python3-devel', 'readline-devel', 'sqlite-devel',
+ 'xz-devel', 'xz-libs', 'zlib-devel',
+ ]
+ state: latest
+ update_cache: yes
--- /dev/null
+Install Python packages.
dnf:
name: ['python2', 'python3', 'python2-pip', 'python3-pip',
'python2-setuptools', 'python3-setuptools',
+ 'python2-pyOpenSSL', 'python3-pyOpenSSL',
]
state: latest
update_cache: yes