Browse code

Document deprecation of fetch module validate_md5 and update --tags merging deprecation (#24022)

* Document deprecation of fetch module validate_md5 and update --tags merging deprecation

Update the default of --tags merging config option to merge by default

* Update CHANGELOG.md

Minor edit

Toshio Kuratomi authored on 2017/04/27 11:57:21
Showing 4 changed files
... ...
@@ -13,6 +13,15 @@ Ansible Changes By Release
13 13
   Python-2.5 you'll need to install Python-2.6 or better there or run
14 14
   Ansible-2.3 until you can upgrade the system.
15 15
 
16
+### Deprecations
17
+* The behaviour when specifying --tags (or --skip-tags) multiple times on the command line
18
+  has changed so that the tags are merged together by default.  See the
19
+  documentation for how to temporarily use the old behaviour if needed:
20
+  https://docs.ansible.com/ansible/intro_configuration.html#merge-multiple-cli-tags
21
+* The fetch module's validate_md5 parameter has been deprecated and will be
22
+  removed in 2.8.  If you wish to disable post-validation of the downloaded
23
+  file, use validate_checksum instead.
24
+
16 25
 ### Minor Changes
17 26
 * removed previously deprecated config option 'hostfile' and env var 'ANSIBLE_HOSTS'
18 27
 * removed unused and deprecated config option 'pattern'
... ...
@@ -607,15 +607,16 @@ merge_multiple_cli_tags
607 607
 
608 608
 .. versionadded:: 2.3
609 609
 
610
-This allows changing how multiple --tags and --skip-tags arguments are handled
611
-on the command line.  In Ansible up to and including 2.3, specifying --tags
612
-more than once will only take the last value of --tags.  Setting this config
613
-value to True will mean that all of the --tags options will be merged
614
-together.  The same holds true for --skip-tags.
610
+This allows changing how multiple :option:`--tags` and :option:`--skip-tags`
611
+arguments are handled on the command line.  Specifying :option:`--tags` more
612
+than once merges all of the :option:`--tags` options together.  If you want
613
+the pre-2.4.x behaviour where only the last value of :option:`--tags` is used,
614
+then set this to False.  The same holds true for :option:`--skip-tags`.
615 615
 
616 616
 .. note:: The default value for this in 2.3 is False.  In 2.4, the
617
-    default value will be True.  After 2.4, the option is going away.
618
-    Multiple --tags and multiple --skip-tags will always be merged together.
617
+    default value is True.  After 2.8, the option will be removed.
618
+    Multiple :option:`--tags` and multiple :option:`--skip-tags` will always
619
+    be merged together.
619 620
 
620 621
 .. _module_lang:
621 622
 
... ...
@@ -276,7 +276,8 @@
276 276
 # This controls how ansible handles multiple --tags and --skip-tags arguments
277 277
 # on the CLI.  If this is True then multiple arguments are merged together.  If
278 278
 # it is False, then the last specified argument is used and the others are ignored.
279
-#merge_multiple_cli_flags = False
279
+# This option will be removed in 2.8.
280
+#merge_multiple_cli_flags = True
280 281
 
281 282
 # Controls showing custom stats at the end, off by default
282 283
 #show_custom_stats = True
... ...
@@ -190,7 +190,7 @@ DEFAULTS='defaults'
190 190
 # True, merge the lists of tags together.  If False, let the last argument
191 191
 # overwrite any previous ones.  Behaviour is overwrite through 2.2.  2.3
192 192
 # overwrites but prints deprecation.  2.4 the default is to merge.
193
-MERGE_MULTIPLE_CLI_TAGS = get_config(p, DEFAULTS, 'merge_multiple_cli_tags', 'ANSIBLE_MERGE_MULTIPLE_CLI_TAGS', False, value_type='boolean')
193
+MERGE_MULTIPLE_CLI_TAGS = get_config(p, DEFAULTS, 'merge_multiple_cli_tags', 'ANSIBLE_MERGE_MULTIPLE_CLI_TAGS', True, value_type='boolean')
194 194
 
195 195
 #### GENERALLY CONFIGURABLE THINGS ####
196 196
 DEFAULT_DEBUG             = get_config(p, DEFAULTS, 'debug',            'ANSIBLE_DEBUG',            False, value_type='boolean')