Test sourcing private variable from elsewhere

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2018-08-08 15:14:29 +02:00
parent 01c3e96690
commit 55563f5395
2 changed files with 5 additions and 2 deletions

View file

@ -3,7 +3,10 @@
hosts: localhost hosts: localhost
gather_facts: false gather_facts: false
tasks: tasks:
- debug: var=msg - debug: var=msg
vars_files:
- "/srv/private/vars_loopabull.yml"
roles: roles:
- {role: debug, msg: msg} - {role: debug, msg: msg}

View file

@ -8,7 +8,7 @@
command: /usr/local/bin/debug.py '{{ msg | to_json }}' command: /usr/local/bin/debug.py '{{ msg | to_json }}'
register: output register: output
environment: environment:
TEST_VARIABLE: \ó/ TEST_VARIABLE: {{ debug_token }} + '\ó/'
- name: Show the output of the script - name: Show the output of the script
debug: debug: