1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Add support for --quiet-build and --quiet-fail to portage module

PR #36452
This commit is contained in:
William L Thomson Jr 2018-03-12 06:19:07 -04:00 committed by Sviatoslav Sydorenko
parent 16c564c4b4
commit d1332b83ee

View file

@ -172,6 +172,25 @@ options:
default: None
version_added: 2.3
quietbuild:
description:
- Redirect all build output to logs alone, and do not display it
- on stdout (--quiet-build)
required: false
default: False
choices: [ "yes", "no" ]
version_added: 2.6
quietfail:
description:
- Suppresses display of the build log on stdout (--quiet-fail)
- Only the die message and the path of the build log will be
- displayed on stdout.
required: false
default: False
choices: [ "yes", "no" ]
version_added: 2.6
requirements: [ gentoolkit ]
author:
- "William L Thomson Jr (@wltjr)"
@ -320,6 +339,8 @@ def emerge_packages(module, packages):
'usepkgonly': '--usepkgonly',
'usepkg': '--usepkg',
'keepgoing': '--keep-going',
'quietbuild': '--quiet-build',
'quietfail': '--quiet-fail',
}
for flag, arg in emerge_flags.items():
if p[flag]:
@ -490,9 +511,16 @@ def main():
keepgoing=dict(default=False, type='bool'),
jobs=dict(default=None, type='int'),
loadavg=dict(default=None, type='float'),
quietbuild=dict(default=False, type='bool'),
quietfail=dict(default=False, type='bool'),
),
required_one_of=[['package', 'sync', 'depclean']],
mutually_exclusive=[['nodeps', 'onlydeps'], ['quiet', 'verbose']],
mutually_exclusive=[
['nodeps', 'onlydeps'],
['quiet', 'verbose'],
['quietbuild', 'verbose'],
['quietfail', 'verbose'],
],
supports_check_mode=True,
)