- debug:
msg: "{{ lookup('vars', 'item.' + environnement }} "
loop: "{{ nginx }}"
fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'item.dev'\n\nThe error appears to have been in '': line 22, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - debug:\n ^ here\n"}