Install paramiko from system repos on CentOS 7.

This commit is contained in:
Felix Fontein 2025-01-11 12:41:52 +01:00
parent 7855f6239c
commit e1f45cd5e7

View File

@ -3,6 +3,13 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
- name: Install paramiko from system repository
package:
name: python-paramiko
become: true
when:
- ansible_distribution == 'CentOS' and ansible_distribution_major_version|int <= 7
- name: Install paramiko
pip:
name: "paramiko{% if cryptography_version.stdout is version('2.5.0', '<') %}<2.5.0{% endif %}"