ovirt_host: add activate parameter (#54594)

This commit is contained in:
Ondra Machacek 2019-04-03 16:30:27 +02:00 committed by ansibot
parent a387b8e239
commit 8940da9b46

View file

@ -473,7 +473,8 @@ def main():
deploy_hosted_engine=(
module.params.get('hosted_engine') == 'deploy'
) if module.params.get('hosted_engine') is not None else None,
result_state=hoststate.UP if host is None else None,
activate=module.params['activate'],
result_state=(hoststate.MAINTENANCE if module.params['activate'] is False else hoststate.UP) if host is None else None,
fail_condition=hosts_module.failed_state_after_reinstall if host is None else lambda h: False,
)
if module.params['activate'] and host is not None: