{"record":{"id":"b0bdbec840a11570","repo":"hashicorp/vagrant","slug":"vagrant-provisioners-ansible-windows-not-supported","errorCode":null,"errorMessage":"vagrant.provisioners.ansible.windows_not_supported_for_control_machine","messagePattern":"vagrant\\.provisioners\\.ansible\\.windows_not_supported_for_control_machine","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"plugins/provisioners/ansible/provisioner/host.rb","lineNumber":39,"sourceCode":"        def provision\n          # At this stage, the SSH access is guaranteed to be ready\n          @ssh_info = @machine.ssh_info\n\n          warn_for_unsupported_platform\n          check_files_existence\n          check_ansible_version_and_compatibility\n\n          execute_ansible_galaxy_from_host if config.galaxy_role_file\n          execute_ansible_playbook_from_host\n        end\n\n        protected\n\n        VAGRANT_ARG_SEPARATOR = 'VAGRANT_ARG_SEP'\n\n        def warn_for_unsupported_platform\n          if Vagrant::Util::Platform.windows?\n            @machine.env.ui.warn(I18n.t(\"vagrant.provisioners.ansible.windows_not_supported_for_control_machine\") + \"\\n\")\n          end\n        end\n\n        def check_ansible_version_and_compatibility\n          # This step will also fetch the Ansible version data into related instance variables\n          set_and_check_compatibility_mode\n\n          # Skip this check when not required, nor possible\n          if !@gathered_version || config.version.empty? || config.version.to_s.to_sym == :latest\n            return\n          end\n\n          if config.version != @gathered_version\n            raise Ansible::Errors::AnsibleVersionMismatch,\n              system: @control_machine,\n              required_version: config.version,\n              current_version: @gathered_version\n          end","sourceCodeStart":21,"sourceCodeEnd":57,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/plugins/provisioners/ansible/provisioner/host.rb#L21-L57","documentation":"Error \"vagrant.provisioners.ansible.windows_not_supported_for_control_machine\" thrown in hashicorp/vagrant.","triggerScenarios":"Thrown at plugins/provisioners/ansible/provisioner/host.rb:39 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5","analyzedAt":"2026-08-21T13:34:32.514Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}