Compare commits

..

3 commits

Author SHA1 Message Date
Marty Winkler
b4a2ec1db9
Merge 5118f2da78 into af870d0b83 2024-01-09 19:45:51 +00:00
Marty Winkler
5118f2da78
profile_roles callback: add parameter to show only summary 2023-11-24 16:44:21 +01:00
Marty Winkler
a029c5c148
profile_tasks callback: add parameter to show only summary 2023-11-23 23:36:36 +01:00
5 changed files with 5 additions and 8 deletions

View file

@ -1,2 +0,0 @@
minor_changes:
- firewalld_info - Only warn about ignored zones, when there are zones ignored.

View file

@ -26,7 +26,7 @@ DOCUMENTATION = '''
ini:
- section: callback_profile_roles
key: summary_only
version_added: 1.5.0
version_added: '1.5.5'
'''
import collections

View file

@ -51,7 +51,7 @@ DOCUMENTATION = '''
ini:
- section: callback_profile_tasks
key: summary_only
version_added: 1.5.0
version_added: '1.5.5'
'''
EXAMPLES = '''

View file

@ -356,9 +356,8 @@ def main():
specified_zones = module.params['zones']
collect_zones = list(set(specified_zones) & set(all_zones))
ignore_zones = list(set(specified_zones) - set(collect_zones))
if ignore_zones:
warn.append(
'Please note: zone:(%s) have been ignored in the gathering process.' % ','.join(ignore_zones))
warn.append(
'Please note: zone:(%s) have been ignored in the gathering process.' % ','.join(ignore_zones))
else:
collect_zones = get_all_zones(client)

View file

@ -831,7 +831,7 @@ def main():
# handle mount on boot. To avoid mount option conflicts, if 'noauto'
# specified in 'opts', mount module will ignore 'boot'.
opts = args['opts'].split(',')
if module.params['boot'] and 'noauto' in opts:
if 'noauto' in opts:
args['warnings'].append("Ignore the 'boot' due to 'opts' contains 'noauto'.")
elif not module.params['boot']:
args['boot'] = 'no'