def get_dynamic_ansible_node(cloud, db):
    """
    Check if the given cloud has a dynamic Ansible node and return its details if it does
    """
    (infrastructure_id, public_ip, username, timestamp) = db.get_ansible_node(cloud)
    return (public_ip, username)