From 031e961c58a41947c92c14d6734e39bfb6daeaf8 Mon Sep 17 00:00:00 2001 From: Alicia Cozine <879121+acozine@users.noreply.github.com> Date: Fri, 30 Nov 2018 14:37:55 -0600 Subject: [PATCH] removes talk of hardcoded loading from plugin docs (#49383) --- lib/ansible/plugins/inventory/ini.py | 3 +-- lib/ansible/plugins/inventory/script.py | 3 +-- lib/ansible/plugins/vars/host_group_vars.py | 2 -- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/ansible/plugins/inventory/ini.py b/lib/ansible/plugins/inventory/ini.py index 8c26f822d3f..a0b17d4409c 100644 --- a/lib/ansible/plugins/inventory/ini.py +++ b/lib/ansible/plugins/inventory/ini.py @@ -24,8 +24,7 @@ DOCUMENTATION = ''' - Do not rely on types set during definition, always make sure you specify type with a filter when needed when consuming the variable. - See the Examples for proper quoting to prevent changes to variable type. notes: - - Replaces the previously hardcoded INI inventory. - - Must be whitelisted in configuration to function. + - Whitelisted in configuration by default. - Consider switching to YAML format for inventory sources to avoid confusion on the actual type of a variable. The YAML inventory plugin processes variable values consistently and correctly. ''' diff --git a/lib/ansible/plugins/inventory/script.py b/lib/ansible/plugins/inventory/script.py index 458e159ba7e..74da40760c5 100644 --- a/lib/ansible/plugins/inventory/script.py +++ b/lib/ansible/plugins/inventory/script.py @@ -35,8 +35,7 @@ DOCUMENTATION = ''' C(--host) will only be used if no C(_meta) key is present. This is a performance optimization as the script would be called per host otherwise. notes: - - It takes the place of the previously hardcoded script inventory. - - In order to function, it requires being whitelisted in configuration, which is true by default. + - Whitelisted in configuration by default. ''' import os diff --git a/lib/ansible/plugins/vars/host_group_vars.py b/lib/ansible/plugins/vars/host_group_vars.py index 361752b6e90..fd80a0c304c 100644 --- a/lib/ansible/plugins/vars/host_group_vars.py +++ b/lib/ansible/plugins/vars/host_group_vars.py @@ -27,8 +27,6 @@ DOCUMENTATION = ''' - Files are restricted by extension to one of .yaml, .json, .yml or no extension. - Hidden (starting with '.') and backup (ending with '~') files and directories are ignored. - Only applies to inventory sources that are existing paths. - notes: - - It takes the place of the previously hardcoded group_vars/host_vars loading. options: _valid_extensions: default: [".yml", ".yaml", ".json"]