def METHOD_NAME(ansible_module):
    """
    :id: bd751cdb-1dc6-4880-8d88-63c8f2814696
    :Title: Test pki-server instance-stop command when instance already stopped.
    :Description: test pki-server instance-stop command
    :CaseComponent: \-
    :Requirement: Pki Server Instance
    :Setup: Use the subsystems setup in ansible to run subsystem commands
    :Steps:
    :ExpectedResults: Verify whether pki-server instance-stop command stop the instance.
    """
    subsystems = [constants.CA_INSTANCE_NAME, constants.KRA_INSTANCE_NAME,
                  constants.OCSP_INSTANCE_NAME, constants.TKS_INSTANCE_NAME,
                  constants.TPS_INSTANCE_NAME]
    for system in subsystems:
        stop_command = 'pki-server instance-stop {}'.format(system)
        start_command = 'pki-server instance-start {}'.format(system)
        # Start the instance
        ansible_module.command(stop_command)
        stop_instance = ansible_module.command(stop_command)
        for result in stop_instance.values():
            if result['rc'] == 0:
                if " instance already stopped" in result['stdout']:
                    assert '{} instance already stopped'.format(system) in result['stdout']
                else:
                    assertstr = system + " instance stopped"
                    assert assertstr in result['stdout']
            else:
                pytest.xfail("Failed to ran pki-server instance-start " + system + " command")
        ansible_module.command(start_command)