
Renames the "artifacting" strategy to "tagfilter" and implements a more generic tag skipping implementation that can be defined from within the ansible vars structure dynamically on a per-host, per-group, or per-playbook basis. To use the tagfilter strategy, run the playbook with strategy: tagfilter and define a hostvar named "skip_tags". Skip tags can be a string or a list, and any tag CONTAINING a skip tag (an exact match is not needed) will be skipped. Also added is a check for a var called "skip_handlers", defaulted to True. When skip_handlers is enabled, no handlers will be run regardless of whether the task is skipped or not. If set to False, handlers will be allowed to run as normal except when tasks are skipped by the skip_tags. Change-Id: I649707e6744e03763c4e786d203716ebf657ab48
22 lines
688 B
YAML
22 lines
688 B
YAML
---
|
|
# Copyright 2016, @WalmartLabs
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
|
|
- include: test-config_template.yml
|
|
|
|
- include: test-filters.yml
|
|
|
|
- include: test-strategy-tagfilter.yml
|