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
|
|
|
|
|
|
|
|
class AnsiblePlaybookAppFailed < 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
|
|
|
|
|
|
|
|
class AnsibleVersionNotFoundOnGuest < AnsibleError
|
|
|
|
error_key(:ansible_version_not_found_on_guest)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|