2015-02-10 14:28:00 +00:00
|
|
|
require "vagrant"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module Ansible
|
|
|
|
module Errors
|
|
|
|
class AnsibleError < Vagrant::Errors::VagrantError
|
|
|
|
error_namespace("vagrant.provisioners.ansible.errors")
|
|
|
|
end
|
|
|
|
|
2015-11-17 21:06:06 +00:00
|
|
|
class AnsibleCommandFailed < AnsibleError
|
2015-11-17 06:55:32 +00:00
|
|
|
error_key(:ansible_command_failed)
|
2015-02-10 14:28:00 +00:00
|
|
|
end
|
|
|
|
|
2017-09-05 22:40:47 +00:00
|
|
|
class AnsibleCompatibilityModeConflict < AnsibleError
|
|
|
|
error_key(:ansible_compatibility_mode_conflict)
|
2015-02-10 14:28:00 +00:00
|
|
|
end
|
|
|
|
|
2015-11-17 06:55:32 +00:00
|
|
|
class AnsibleNotFoundOnGuest < AnsibleError
|
|
|
|
error_key(:ansible_not_found_on_guest)
|
2015-02-10 14:28:00 +00:00
|
|
|
end
|
|
|
|
|
2017-09-05 22:40:47 +00:00
|
|
|
class AnsibleNotFoundOnHost < AnsibleError
|
|
|
|
error_key(:ansible_not_found_on_host)
|
|
|
|
end
|
|
|
|
|
2016-06-08 20:59:47 +00:00
|
|
|
class AnsiblePipInstallIsNotSupported < AnsibleError
|
|
|
|
error_key(:cannot_support_pip_install)
|
|
|
|
end
|
|
|
|
|
2017-09-05 22:40:47 +00:00
|
|
|
class AnsibleProgrammingError < AnsibleError
|
|
|
|
error_key(:ansible_programming_error)
|
|
|
|
end
|
|
|
|
|
2017-08-29 03:32:38 +00:00
|
|
|
class AnsibleVersionMismatch < AnsibleError
|
|
|
|
error_key(:ansible_version_mismatch)
|
2015-02-10 14:28:00 +00:00
|
|
|
end
|
2017-09-01 06:05:50 +00:00
|
|
|
|
2015-02-10 14:28:00 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|