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:
Adam Miller 2018-07-24 17:17:51 -05:00 committed by GitHub
parent 939de473c6
commit 85fedf9fcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: