Skip to content

Instantly share code, notes, and snippets.

@martijnvermaat
Last active November 22, 2016 03:32
Show Gist options
  • Save martijnvermaat/37d4336bf312fecfe8ba3f05f909515d to your computer and use it in GitHub Desktop.
Save martijnvermaat/37d4336bf312fecfe8ba3f05f909515d to your computer and use it in GitHub Desktop.
Testcase for Ansible #18324
---
- hosts: all
tasks:
- include_vars: vars_plain.yml
- assert: that="var == 'vars_plain_yml'"
- include_vars: vars_vaulted.yml
- assert: that="var == 'vars_vaulted_yml'"
- include_vars: vars_plain
- assert: that="var == 'vars_plain'"
- include_vars: vars_vaulted
- assert: that="var == 'vars_vaulted'"
ignore_errors: true
#!/usr/bin/env sh
ansible-playbook -i localhost, -c local --vault-password-file vault.pass playbook.yml
---
var: vars_plain
---
var: vars_plain_yml
$ANSIBLE_VAULT;1.1;AES256
62656434663333386364353730643430616166656438643837323930343736666236303031666436
6663313161623238616439343939333335343065336165620a373432313631343135393165636232
38333266613539613233326131303166343263663031363766633564626365376163333631666639
6664376561333962620a313161356434356139363965653936623666336630353739643030616463
62373037343332303664633965326537626231366330373139623132343462323136
$ANSIBLE_VAULT;1.1;AES256
61626539616633313539623937376461313537333663646465643534616161303636626536376162
3131353037636236376139343931366663343762303537360a316130623238623730616239653035
62353966653763363231333061343435623930386461643630383936353233623236333930306163
6339356465323138610a663637643332626661353466386133663538343637356439343730626365
34373862653034383230393337346663326139646335346539343237316266353232
somethingsomething
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment