Ok, here is a minimal playbook showing my particular issue.

  ---
  - hosts: localhost
    vars:
      foo: pwfile
    tasks:
      - name: lookup /etc/passwd
        stat: path=/etc/passwd
        register: abc_{{ foo }}_def
      - name: Display abc_{{ foo }}_def content
        debug: var=abc_{{ foo }}_def

If I run this playbook using Ansible 2.1.3 it will display the full
stat result for /etc/passwd. If I instead use Ansible 2.2.0 I get the
following output from the debug task.

  TASK [Display abc_pwfile_def content] 
******************************************
  ok: [localhost] => {
      "abc_pwfile_def": "VARIABLE IS NOT DEFINED!"
  }

So, is this a bug/regression in Ansible 2.2, or were I relying on an
unsupported behavior?

// Andreas

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1480740738.3954.5.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.

Reply via email to