def METHOD_NAME(environment, args):
    print(color_notice("\nPreparing to deploy Formplayer to: "), end="")
    print(f"{environment.name}\n")
    tag_commits = environment.fab_settings_config.tag_deploy_commits
    repo = github_repo('dimagi/formplayer', require_write_permissions=tag_commits)
    diff = get_deploy_diff(environment, repo)
    diff.print_deployer_diff()
    context = DeployContext(
        service_name="Formplayer",
        revision=args.commcare_rev,
        diff=diff,
        start_time=datetime.utcnow()
    )
    if not ask('Continue with deploy?', quiet=args.quiet):
        return 1
    record_deploy_start(environment, context)
    rc = run_ansible_playbook_command(environment, args)
    if rc != 0:
        record_deploy_failed(environment, context)
        return rc
    rc = commcare_cloud(
        args.env_name, 'run-shell-command', 'formplayer',
        ('supervisorctl reread; '
         'supervisorctl update {project}-{deploy_env}-formsplayer-spring; '
         'supervisorctl restart {project}-{deploy_env}-formsplayer-spring').format(
            project='commcare-hq',
            deploy_env=environment.meta_config.deploy_env,
        ), '-b',
    )
    if rc != 0:
        record_deploy_failed(environment, context)
        return rc
    record_deploy_success(environment, context)
    return 0