2016-06-10 12 views

Antwort

0

Die oben erreicht werden kann, wie folgt:

 
- name: "Registering list varibles count " 
    shell: python -c "print [x for x in range(1, {{ server_var['count'] }})]" 
    register: list_name 
- name: "debug statement to checkout the output" 
    debug: 
    msg: "{{ list_name.stdout }}" 
# the list_name.stdout can also be used as jinja list variable 
Verwandte Themen