mirror of https://github.com/ansible/ansible.git
Show file instead of vars on load error (#86282)
(cherry picked from commit 490795770f34120adc02b08fc24fc50be6ac68a2)
(cherry picked from commit 11a2d02bf2)
pull/86283/head
parent
3c4f0f99bc
commit
1c1e37654a
@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- Variable loading now uses file source instead of variables when invalidly formmated vars file is loaded.
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: test vault errors
|
||||||
|
gather_facts: false
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: bad included vault
|
||||||
|
include_vars:
|
||||||
|
file: vars/bad_vault.yml
|
||||||
|
tags: includevault, never
|
||||||
|
no_log: false
|
||||||
|
|
||||||
|
- name: Show bad vault contents ... if i get here, it was a good vault!
|
||||||
|
debug:
|
||||||
|
msg: "{{ test_password }} {{ jdbc_test_password }} {{ api_test_password }}"
|
||||||
@ -0,0 +1 @@
|
|||||||
|
test
|
||||||
@ -0,0 +1,10 @@
|
|||||||
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
|
65616232393566313961313431386633366639386133383230656230333934656366363636393730
|
||||||
|
3266313739663639636161373033333865303461343936370a356463393635623664316464353061
|
||||||
|
63396639643331303231616336663562303764653733326532316139643036336436396565653531
|
||||||
|
3836383032626262620a316666363164626537346663383333376330623339633762363932613537
|
||||||
|
32663462613532646139633364363136656132346661373331363164356162313762343337393666
|
||||||
|
38653864363938316534333438643761623264376535336233656630376430346366333262313532
|
||||||
|
33366662663137306431623464303561383730336466613166386136656364306436343032343631
|
||||||
|
37396234633230626263373435623731616664653939343630393935626461396230663734373861
|
||||||
|
3634
|
||||||
Loading…
Reference in New Issue