From 40a053ce7813445f4ffefff1e90327b5a0a8d32d Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 25 Feb 2019 15:58:51 -0500 Subject: [PATCH] better error for bad module options (#52726) also document clearly inline vaults don't work on 'options' fixes #52707 --- changelogs/fragments/better_json_option_error.yml | 2 ++ docs/docsite/rst/user_guide/playbooks_vault.rst | 2 ++ lib/ansible/executor/module_common.py | 5 ++++- 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/better_json_option_error.yml diff --git a/changelogs/fragments/better_json_option_error.yml b/changelogs/fragments/better_json_option_error.yml new file mode 100644 index 00000000000..6306f59b403 --- /dev/null +++ b/changelogs/fragments/better_json_option_error.yml @@ -0,0 +1,2 @@ +bugfixes: + - handle option json errors more gracefully, also document options are not vaultable. diff --git a/docs/docsite/rst/user_guide/playbooks_vault.rst b/docs/docsite/rst/user_guide/playbooks_vault.rst index bd26ff7afb8..3aae8327804 100644 --- a/docs/docsite/rst/user_guide/playbooks_vault.rst +++ b/docs/docsite/rst/user_guide/playbooks_vault.rst @@ -126,6 +126,8 @@ To create a vaulted variable, use the :ref:`ansible-vault encrypt_string