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:
parent
939de473c6
commit
85fedf9fcf
1 changed files with 12 additions and 0 deletions
|
@ -22,6 +22,18 @@
|
||||||
- createrepo # used by el6 version of rpmfluff
|
- createrepo # used by el6 version of rpmfluff
|
||||||
when:
|
when:
|
||||||
- ansible_distribution not in ['Fedora']
|
- 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
|
- name: Copy script for creating a repo
|
||||||
copy:
|
copy:
|
||||||
|
|
Loading…
Reference in a new issue