def sudo!(*args)
      on roles(:all) do |host|
        key = "#{host.user}@#{host.hostname}"
        SSHKit::Sudo.password_cache[key] = "#{fetch(:password)}\n" # \n is enter
      end
      sudo(*args)
    end
def sudo!(*args)
      on roles(:all) do |host|
        key = "#{host.user}@#{host.hostname}"
        SSHKit::Sudo.password_cache[key] = "#{fetch(:password)}\n" # \n is enter
      end
      sudo(*args)
    end
`sudo!` executes sudo command and provides password input.