2019-04-06 02:31:33 +02:00
|
|
|
- hosts: localhost
|
|
|
|
tasks:
|
|
|
|
- name: Detect Paramiko
|
|
|
|
detect_paramiko:
|
|
|
|
register: detect_paramiko
|
|
|
|
- name: Persist Result
|
|
|
|
copy:
|
|
|
|
content: "{{ detect_paramiko }}"
|
|
|
|
dest: "{{ lookup('env', 'OUTPUT_DIR') }}/detect-paramiko.json"
|
|
|
|
- name: Install Paramiko
|
|
|
|
when: not detect_paramiko.found
|
|
|
|
include_tasks: "{{ item }}"
|
|
|
|
with_first_found:
|
2020-11-06 21:50:29 +01:00
|
|
|
- "install-{{ ansible_distribution }}-{{ ansible_distribution_version }}-python-{{ ansible_python.version.major }}.yml"
|
2019-04-06 02:31:33 +02:00
|
|
|
- "install-{{ ansible_distribution }}-{{ ansible_distribution_major_version }}-python-{{ ansible_python.version.major }}.yml"
|
2019-11-15 23:08:26 +01:00
|
|
|
- "install-{{ ansible_os_family }}-{{ ansible_distribution_major_version }}-python-{{ ansible_python.version.major }}.yml"
|
2019-04-06 02:31:33 +02:00
|
|
|
- "install-python-{{ ansible_python.version.major }}.yml"
|
|
|
|
- "install-fail.yml"
|