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
|
|
|
|
|
2015-11-17 06:55:32 +00:00
|
|
|
class AnsibleNotFoundOnHost < AnsibleError
|
|
|
|
error_key(:ansible_not_found_on_host)
|
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
|
|
|
|
|
2016-06-08 20:59:47 +00:00
|
|
|
class AnsiblePipInstallIsNotSupported < AnsibleError
|
|
|
|
error_key(:cannot_support_pip_install)
|
|
|
|
end
|
|
|
|
|
2015-02-10 14:28:00 +00:00
|
|
|
class AnsibleVersionNotFoundOnGuest < AnsibleError
|
|
|
|
error_key(:ansible_version_not_found_on_guest)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|