mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
make sure to get correct python version for rpmfluff in setup_rpm_repo (#43228)
* make sure to get correct python version for rpmfluff in setup_rpm_repo Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
@@ -22,6 +22,18 @@
|
||||
- createrepo # used by el6 version of rpmfluff
|
||||
when:
|
||||
- ansible_distribution not in ['Fedora']
|
||||
- ansible_python["version"]["major"] == 2
|
||||
|
||||
- name: Install rpmfluff and deps
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
with_items:
|
||||
- python3-rpmfluff
|
||||
- createrepo_c
|
||||
- createrepo # used by el6 version of rpmfluff
|
||||
when:
|
||||
- ansible_distribution not in ['Fedora']
|
||||
- ansible_python["version"]["major"] == 3
|
||||
|
||||
- name: Copy script for creating a repo
|
||||
copy:
|
||||
|
||||
Reference in New Issue
Block a user