def METHOD_NAME(ansible_module):
    """
    :id: 4f2cc61a-7167-4781-b8f1-5898b30d6bca
    :Title: Test pki-server ca-clone-prepare command.
    :Description: Test pki-server ca-clone-prepare command
    :Requirement: Pki Server CA
    :CaseComponent: \-
    :Setup: Use the subsystems setup in ansible to run subsystem commands
    :Steps:
    :ExpectedResults:
        1. Verify whether pki-server ca-clone-prepare command with password file
           exports ca backup keys.
    """
    cmd = 'pki-server ca-clone-prepare -i {} --pkcs12-file /tmp/ca_backup_keys.p12 ' \
          '--pkcs12-password-file /tmp/password.txt'.format(constants.CA_INSTANCE_NAME,
                                                            constants.CLIENT_PKCS12_PASSWORD)
    ansible_module.shell("echo '{}' > /tmp/password.txt".format(constants.CLIENT_PKCS12_PASSWORD))
    status = ansible_module.stat(path='/tmp/ca_backup_keys.p12')
    for r1 in status.values():
        if r1['stat']['exists']:
            ansible_module.command('rm -rf /tmp/ca_backup_keys.p12')
        export_out = ansible_module.command(cmd)
        for result in export_out.values():
            if result['rc'] == 0:
                assert "Added certificate" in result['stdout']
                isfile = ansible_module.stat(path='/tmp/ca_backup_keys.p12')
                for res in isfile.values():
                    assert res['stat']['exists']
            else:
                pytest.xfail("Failed to run pki-server ca-clone-prepare command.")