Add support for "ansible.skip_tags" attribute

This commit is contained in:
Gilles Cornu 2013-08-12 09:41:18 +02:00
parent 8d5b614231
commit b061e02bc8
2 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,7 @@ module VagrantPlugins
attr_accessor :sudo_user attr_accessor :sudo_user
attr_accessor :verbose attr_accessor :verbose
attr_accessor :tags attr_accessor :tags
attr_accessor :skip_tags
attr_accessor :start_at_task attr_accessor :start_at_task
# Joker attribute, used to pass unsupported arguments to ansible anyway # Joker attribute, used to pass unsupported arguments to ansible anyway
@ -25,6 +26,7 @@ module VagrantPlugins
@sudo_user = UNSET_VALUE @sudo_user = UNSET_VALUE
@verbose = UNSET_VALUE @verbose = UNSET_VALUE
@tags = UNSET_VALUE @tags = UNSET_VALUE
@skip_tags = UNSET_VALUE
@start_at_task = UNSET_VALUE @start_at_task = UNSET_VALUE
@raw_arguments = UNSET_VALUE @raw_arguments = UNSET_VALUE
end end
@ -39,6 +41,7 @@ module VagrantPlugins
@sudo_user = nil if @sudo_user == UNSET_VALUE @sudo_user = nil if @sudo_user == UNSET_VALUE
@verbose = nil if @verbose == UNSET_VALUE @verbose = nil if @verbose == UNSET_VALUE
@tags = nil if @tags == UNSET_VALUE @tags = nil if @tags == UNSET_VALUE
@skip_tags = nil if @skip_tags == UNSET_VALUE
@start_at_task = nil if @start_at_task == UNSET_VALUE @start_at_task = nil if @start_at_task == UNSET_VALUE
@raw_arguments = nil if @raw_arguments == UNSET_VALUE @raw_arguments = nil if @raw_arguments == UNSET_VALUE
end end

View File

@ -15,6 +15,7 @@ module VagrantPlugins
options << "--inventory-file=#{config.inventory_file}" if config.inventory_file options << "--inventory-file=#{config.inventory_file}" if config.inventory_file
options << "--ask-sudo-pass" if config.ask_sudo_pass options << "--ask-sudo-pass" if config.ask_sudo_pass
options << "--tags=#{as_list_argument(config.tags)}" if config.tags options << "--tags=#{as_list_argument(config.tags)}" if config.tags
options << "--skip-tags=#{as_list_argument(config.skip_tags)}" if config.skip_tags
options << "--limit=#{as_list_argument(config.limit)}" if config.limit options << "--limit=#{as_list_argument(config.limit)}" if config.limit
options << "--start-at-task=#{config.start_at_task}" if config.start_at_task options << "--start-at-task=#{config.start_at_task}" if config.start_at_task
options << "--sudo" if config.sudo options << "--sudo" if config.sudo