mirror of https://github.com/ansible/ansible.git
* Show file instead of vars on load error (cherry picked from commit 490795770f34120adc02b08fc24fc50be6ac68a2) (cherry picked from commitpull/86285/head11a2d02bf2) * merged * Update lib/ansible/vars/manager.py --------- (cherry picked from commit335db20951) Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
parent
55c6f879f7
commit
236efefef9
@ -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