mirror of https://github.com/ansible/ansible.git
[stable-2.9] Allow single vault encrypted values to be used directly as module parameters. Fixes #68275 (#70607) (#70642)
* rebase conflicts
* [stable-2.9] Allow single vault encrypted values to be used directly as module parameters. Fixes #68275 (#70607).
(cherry picked from commit a77dbf0866
)
Co-authored-by: Matt Martz <matt@sivel.net>
pull/70754/head
parent
4f978af4ca
commit
f556b6cdd8
@ -0,0 +1,3 @@
|
|||||||
|
bugfixes:
|
||||||
|
- Vault - Allow single vault encrypted values to be used directly as module
|
||||||
|
parameters. (https://github.com/ansible/ansible/issues/68275)
|
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: localhost
|
||||||
|
tasks:
|
||||||
|
- ping:
|
||||||
|
data: !vault |
|
||||||
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
|
35323961353038346165643738646465376139363061353835303739663538343266303232326635
|
||||||
|
3365353662646236356665323135633630656238316530640a663362363763633436373439663031
|
||||||
|
33663433383037396438656464636433653837376361313638366362333037323961316364363363
|
||||||
|
3835616438623261650a636164376534376661393134326662326362323131373964313961623365
|
||||||
|
3833
|
||||||
|
register: ping_result
|
||||||
|
|
||||||
|
- assert:
|
||||||
|
that:
|
||||||
|
- ping_result.ping == 'foo bar'
|
Loading…
Reference in New Issue