def deploy_command(deb_package, hostname, username = "pasha"):
    """Command for start deployment on `target_hosts` of package.

    Args:

        deb_package (File): Debian package to install
        hostname (str): host for installation
        username (str): SSH user for installation process

    Returns:

        Prepared string containing full bash command to start a deployment

    """
    echo = 'echo "Deploying to {hostname}"\n'
    remove_old = "ssh {username}@{hostname} 'sudo rm -f {package_name}'\n"
    copy = "scp {package_path} {username}@{hostname}:~\n"
    remote_install = "sudo -H apt install --reinstall ./{package_name}".format(package_name = deb_package.basename)
    notify = "ssh {username}@{hostname} '{remote_notify}'\n"
    install = "ssh {username}@{hostname} '{remote_install}'\n"
    return (echo + remove_old + copy + install + remove_old).format(
        package_name = deb_package.basename,
        package_path = deb_package.short_path,
        hostname = hostname,
        username = username,
        remote_install = remote_install,
    )