mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-07-15 20:06:30 -04:00
Some checks failed
/ sync-acceptance (push) Has been cancelled
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.1 (push) Has been cancelled
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.2 (push) Has been cancelled
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.3 (push) Has been cancelled
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.4 (push) Has been cancelled
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
43 lines
No EOL
1 KiB
Ruby
43 lines
No EOL
1 KiB
Ruby
# Copyright IBM Corp. 2010, 2025
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
require "vagrant"
|
|
|
|
module VagrantPlugins
|
|
module Ansible
|
|
module Errors
|
|
class AnsibleError < Vagrant::Errors::VagrantError
|
|
error_namespace("vagrant.provisioners.ansible.errors")
|
|
end
|
|
|
|
class AnsibleCommandFailed < AnsibleError
|
|
error_key(:ansible_command_failed)
|
|
end
|
|
|
|
class AnsibleCompatibilityModeConflict < AnsibleError
|
|
error_key(:ansible_compatibility_mode_conflict)
|
|
end
|
|
|
|
class AnsibleNotFoundOnGuest < AnsibleError
|
|
error_key(:ansible_not_found_on_guest)
|
|
end
|
|
|
|
class AnsibleNotFoundOnHost < AnsibleError
|
|
error_key(:ansible_not_found_on_host)
|
|
end
|
|
|
|
class AnsiblePipInstallIsNotSupported < AnsibleError
|
|
error_key(:cannot_support_pip_install)
|
|
end
|
|
|
|
class AnsibleProgrammingError < AnsibleError
|
|
error_key(:ansible_programming_error)
|
|
end
|
|
|
|
class AnsibleVersionMismatch < AnsibleError
|
|
error_key(:ansible_version_mismatch)
|
|
end
|
|
|
|
end
|
|
end
|
|
end |