Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/setup_paramiko/tasks/main.yml

raw
1 ---
2 ####################################################################
3 # WARNING: These are designed specifically for Ansible tests #
4 # and should not be used as examples of how to write Ansible roles #
5 ####################################################################
6
7 # Copyright (c) Ansible Project
8 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
9 # SPDX-License-Identifier: GPL-3.0-or-later
10
11 - name: Install required libs
12 pip:
13 name:
14 - paramiko
15 state: present
16 extra_args: "-c {{ remote_constraints }}"
17 when: ansible_facts.distribution != 'Debian' or ansible_facts.distribution_major_version is version('13', '<')
18
19 - name: Install required libs (Debian 13+)
20 package:
21 name: python3-paramiko
22 state: present
23 when: ansible_facts.distribution == 'Debian' and ansible_facts.distribution_major_version is version('13', '>=')