mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
respawn copr module when dnf is missing (#6522)
* respawn copr module when dnf is missing Fixes: https://bugzilla.redhat.com/2203513 * don't guard common.respawn module_util import
This commit is contained in:
parent
e588e675d9
commit
bd6cec2105
3 changed files with 20 additions and 6 deletions
|
@ -10,12 +10,6 @@
|
|||
ansible_distribution == 'Fedora'
|
||||
or (ansible_os_family == 'RedHat' and ansible_distribution != 'Fedora'
|
||||
and ansible_distribution_major_version | int >= 8)
|
||||
# The copr module imports dnf which is only available for the system Python
|
||||
# interpreter.
|
||||
- >
|
||||
not (ansible_distribution == 'CentOS' and
|
||||
ansible_distribution_major_version | int == 8 and not
|
||||
ansible_python_version.startswith('3.6'))
|
||||
block:
|
||||
- debug: var=copr_chroot
|
||||
- name: enable copr project
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue