update pipx to new style with 'default'
This commit is contained in:
@@ -10,11 +10,15 @@
|
|||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pipx:
|
pipx:
|
||||||
methods:
|
methods:
|
||||||
|
default:
|
||||||
- system
|
- system
|
||||||
pkgname:
|
pkgname:
|
||||||
RedHat: pipx
|
default: pipx
|
||||||
Debian: pipx
|
- name: Finalise pipx default facts
|
||||||
Archlinux: python-pipx
|
ansible.builtin.set_fact:
|
||||||
|
pipx:
|
||||||
|
methods: "{{ pipx.methods[os_family] | default(pipx.methods.default) }}"
|
||||||
|
pkgname: "{{ pipx.pkgname[os_family] | default(pipx.pkgname.default) }}"
|
||||||
# }}}
|
# }}}
|
||||||
- name: Configure pipx
|
- name: Configure pipx
|
||||||
when:
|
when:
|
||||||
@@ -32,8 +36,8 @@
|
|||||||
block:
|
block:
|
||||||
- name: Queue pipx for system install
|
- name: Queue pipx for system install
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_sys: "{{ pkg_sys + [pipx.pkgname[os_family]] }}"
|
pkg_sys: "{{ pkg_sys + [pipx.pkgname] }}"
|
||||||
pipx_install: "{{ pipx_imethod }}={{ pipx.pkgname[os_family] }}"
|
pipx_install: "{{ pipx_imethod }}={{ pipx.pkgname }}"
|
||||||
|
|
||||||
- name: Finalise pipx configuration
|
- name: Finalise pipx configuration
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
|
|||||||
Reference in New Issue
Block a user