Install Python's RPM bindings (for package_facts)
This commit is contained in:
parent
c4e5053aba
commit
12fff8c858
|
@ -7,6 +7,16 @@
|
||||||
mode: 0755
|
mode: 0755
|
||||||
run_once: True
|
run_once: True
|
||||||
|
|
||||||
|
- name: "[RPM] Install pythonX-rpm"
|
||||||
|
package:
|
||||||
|
name: "python{{ ansible_facts.python.version.major|replace('2', '') }}-rpm"
|
||||||
|
when: ansible_pkg_mgr in ["dnf", "zypper"]
|
||||||
|
|
||||||
|
- name: "[RPM] Install rpm-python"
|
||||||
|
package:
|
||||||
|
name: "rpm-python"
|
||||||
|
when: ansible_pkg_mgr in ["yum"]
|
||||||
|
|
||||||
- package_facts:
|
- package_facts:
|
||||||
ignore_errors: True
|
ignore_errors: True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue