2019-04-06 02:31:33 +02:00
|
|
|
- hosts: localhost
|
|
|
|
vars:
|
|
|
|
detect_paramiko: '{{ lookup("file", lookup("env", "OUTPUT_DIR") + "/detect-paramiko.json") | from_json }}'
|
|
|
|
tasks:
|
|
|
|
- name: Uninstall Paramiko and Verify Results
|
|
|
|
when: not detect_paramiko.found
|
|
|
|
block:
|
|
|
|
- name: Uninstall Paramiko
|
|
|
|
include_tasks: "{{ item }}"
|
|
|
|
with_first_found:
|
2020-11-06 21:50:29 +01:00
|
|
|
- "uninstall-{{ ansible_distribution }}-{{ ansible_distribution_version }}-python-{{ ansible_python.version.major }}.yml"
|
2019-04-06 02:31:33 +02:00
|
|
|
- "uninstall-{{ ansible_distribution }}-{{ ansible_distribution_major_version }}-python-{{ ansible_python.version.major }}.yml"
|
2019-11-15 23:08:26 +01:00
|
|
|
- "uninstall-{{ ansible_os_family }}-{{ ansible_distribution_major_version }}-python-{{ ansible_python.version.major }}.yml"
|
2021-01-11 18:20:47 +01:00
|
|
|
- "uninstall-{{ ansible_os_family }}-python-{{ ansible_python.version.major }}.yml"
|
2019-04-06 02:31:33 +02:00
|
|
|
- "uninstall-{{ ansible_pkg_mgr }}-python-{{ ansible_python.version.major }}.yml"
|
|
|
|
- "uninstall-{{ ansible_pkg_mgr }}.yml"
|
|
|
|
- "uninstall-fail.yml"
|
|
|
|
- name: Verify Paramiko was uninstalled
|
|
|
|
detect_paramiko:
|
|
|
|
register: detect_paramiko
|
|
|
|
failed_when: detect_paramiko.found
|