now . I has run two comands and register the two variable , when I call the variable , the variable Unavailable (undefined)
flowing is my playbook:
now . I has run two comands and register the two variable , when I call the variable , the variable Unavailable (undefined)
flowing is my playbook:
The value of register can not be a variable. You must statically define it such as:
register: cange
Additionally, ‘register’ works a little differently with loops such as with_items. See <http://docs.ansible.com/playbooks_loops.html#using-register-with-a-loop>