diff --git a/plugins/provisioners/ansible/config.rb b/plugins/provisioners/ansible/config.rb index d3a8c042b..54fe4c8a2 100644 --- a/plugins/provisioners/ansible/config.rb +++ b/plugins/provisioners/ansible/config.rb @@ -10,6 +10,7 @@ module VagrantPlugins attr_accessor :sudo_user attr_accessor :verbose attr_accessor :tags + attr_accessor :skip_tags attr_accessor :start_at_task # Joker attribute, used to pass unsupported arguments to ansible anyway @@ -25,6 +26,7 @@ module VagrantPlugins @sudo_user = UNSET_VALUE @verbose = UNSET_VALUE @tags = UNSET_VALUE + @skip_tags = UNSET_VALUE @start_at_task = UNSET_VALUE @raw_arguments = UNSET_VALUE end @@ -39,6 +41,7 @@ module VagrantPlugins @sudo_user = nil if @sudo_user == UNSET_VALUE @verbose = nil if @verbose == 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 @raw_arguments = nil if @raw_arguments == UNSET_VALUE end diff --git a/plugins/provisioners/ansible/provisioner.rb b/plugins/provisioners/ansible/provisioner.rb index 46d1528d0..8d57d9036 100644 --- a/plugins/provisioners/ansible/provisioner.rb +++ b/plugins/provisioners/ansible/provisioner.rb @@ -15,6 +15,7 @@ module VagrantPlugins options << "--inventory-file=#{config.inventory_file}" if config.inventory_file options << "--ask-sudo-pass" if config.ask_sudo_pass 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 << "--start-at-task=#{config.start_at_task}" if config.start_at_task options << "--sudo" if config.sudo