You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
352 B
12 lines
352 B
- name: Setze stage von Umgebungsvariablen
|
|
set_fact:
|
|
stage: "{{ lookup('env', 'stage') }}"
|
|
user: "{{ lookup('env', 'user') }}"
|
|
|
|
- name: Zeige stage aus ENV und aus Ansible-Variablen
|
|
debug:
|
|
msg:
|
|
- "ENV: {{ lookup('env', 'stage') }}"
|
|
- "ENV: {{ lookup('env', 'user') }}"
|
|
- "VAR: {{ stage | default('Nicht gesetzt') }}"
|
|
|
|
|