fix paramiko deps for freebsd/12.2

Signed-off-by: Rick Elrod <rick@elrod.me>
This commit is contained in:
Rick Elrod 2020-11-06 14:50:29 -06:00
parent 7a08efc546
commit 11b7091c84
4 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,3 @@
- name: Install Paramiko for Python 3 on FreeBSD 12.2
pkgng:
name: py37-paramiko

View file

@ -11,6 +11,7 @@
when: not detect_paramiko.found
include_tasks: "{{ item }}"
with_first_found:
- "install-{{ ansible_distribution }}-{{ ansible_distribution_version }}-python-{{ ansible_python.version.major }}.yml"
- "install-{{ ansible_distribution }}-{{ ansible_distribution_major_version }}-python-{{ ansible_python.version.major }}.yml"
- "install-{{ ansible_os_family }}-{{ ansible_distribution_major_version }}-python-{{ ansible_python.version.major }}.yml"
- "install-python-{{ ansible_python.version.major }}.yml"

View file

@ -0,0 +1,4 @@
- name: Uninstall Paramiko for Python 3 on FreeBSD 12.2
pkgng:
name: py37-paramiko
state: absent

View file

@ -8,6 +8,7 @@
- name: Uninstall Paramiko
include_tasks: "{{ item }}"
with_first_found:
- "uninstall-{{ ansible_distribution }}-{{ ansible_distribution_version }}-python-{{ ansible_python.version.major }}.yml"
- "uninstall-{{ ansible_distribution }}-{{ ansible_distribution_major_version }}-python-{{ ansible_python.version.major }}.yml"
- "uninstall-{{ ansible_os_family }}-{{ ansible_distribution_major_version }}-python-{{ ansible_python.version.major }}.yml"
- "uninstall-{{ ansible_pkg_mgr }}-python-{{ ansible_python.version.major }}.yml"