def main(): module = AnsibleModule( argument_spec=online_argument_spec(), supports_check_mode=True, ) try: servers_info = OnlineServerInfo(module).all_detailed_servers() module.exit_json(online_server_info=servers_info) except OnlineException as exc: module.fail_json(msg=exc.message)
def main(): module = AnsibleModule( argument_spec=online_argument_spec(), supports_check_mode=True, ) try: module.exit_json( online_user_info=OnlineUserInfo(module).get_resources()) except OnlineException as exc: module.fail_json(msg=exc.message)
def main(): module = AnsibleModule( argument_spec=online_argument_spec(), supports_check_mode=True, ) try: servers_facts = OnlineServerFacts(module).all_detailed_servers() module.exit_json(ansible_facts={'online_server_facts': servers_facts}) except OnlineException as exc: module.fail_json(msg=exc.message)
def main(): module = AnsibleModule( argument_spec=online_argument_spec(), supports_check_mode=True, ) try: module.exit_json( ansible_facts={'online_user_facts': OnlineUserFacts(module).get_resources()} ) except OnlineException as exc: module.fail_json(msg=exc.message)