You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Small quiz, who can guess what happens before trying, and explain why:
---
- name: show an important difference between vars and factshosts: localhostgather_facts: falsebecome: falsevars:
some_var: "{{ lookup('password', '/dev/null') }}"tasks:
- name: define now a factset_fact:
some_fact: "{{ lookup('password', '/dev/null') }}"
- name: output now the fact twicedebug:
msg: "{{ some_fact }} vs. {{ some_fact }}"
- name: output again the factdebug:
var: some_fact
- name: output now the variable also twicedebug:
msg: "{{ some_var }} vs. {{ some_var }}"
- name: output again the variable (uups!)debug:
var: some_var
The text was updated successfully, but these errors were encountered:
Small quiz, who can guess what happens before trying, and explain why:
The text was updated successfully, but these errors were encountered: