mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-28 07:31:23 -07:00
fix up sanity tests and with_modules conditional
Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
parent
4a06e95671
commit
23b60035a1
1 changed files with 8 additions and 7 deletions
|
@ -257,17 +257,17 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: install a modularity appstream with defined stream and profile
|
- name: install a modularity appstream with defined stream and profile
|
||||||
dnf:
|
dnf:
|
||||||
name: @postgresql:9.6/client
|
name: '@postgresql:9.6/client'
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: install a modularity appstream with defined stream
|
- name: install a modularity appstream with defined stream
|
||||||
dnf:
|
dnf:
|
||||||
name: @postgresql:9.6
|
name: '@postgresql:9.6'
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: install a modularity appstream with defined profile
|
- name: install a modularity appstream with defined profile
|
||||||
dnf:
|
dnf:
|
||||||
name: @postgresql/client
|
name: '@postgresql/client'
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
@ -764,6 +764,7 @@ class DnfModule(YumDnf):
|
||||||
if env:
|
if env:
|
||||||
env_specs.append(env.id)
|
env_specs.append(env.id)
|
||||||
|
|
||||||
|
if self.with_modules:
|
||||||
mdl = self.module_base._get_modules(grp_env_mdl_candidate)
|
mdl = self.module_base._get_modules(grp_env_mdl_candidate)
|
||||||
if mdl[0]:
|
if mdl[0]:
|
||||||
module_specs.append(grp_env_mdl_candidate)
|
module_specs.append(grp_env_mdl_candidate)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue