task :itamae do
  on roles(:all) do
    roles = host.roles.to_a
    target = host.hostname
    ssh_config = host.ssh_options[:config]

    run_locally do
      with target_host: target, ssh_config: ssh_config do
        roles.each do |role|
          execute :itamae, :ssh, "-F #{ssh_config}", "-h #{target}", "-y nodes/#{role}.yml", "roles/#{role}.rb"
        end
      end
    end
  end
end

task :itamae do
  on roles(:all) do
    roles = host.roles.to_a
    target = host.hostname
    ssh_config = host.ssh_options[:config]

    run_locally do
      with target_host: target, ssh_config: ssh_config do
        roles.each do |role|
          execute :itamae, :ssh, "--ssh-config #{ssh_config}", "-h #{target}", "-y nodes/#{role}.yml", "roles/#{role}.rb"
        end
      end
    end
  end
end

Use `--ssh-config` instead of `-F`
Use `--ssh-config` instead of `-F`
