I have this play.yml
play.yml
--- - hosts: 127.0.0.1 connection: local sudo: false tasks: - include: apache.yml
My Apache look
I know, it is long ago, but since the easiest answer was not yet posted I will do so for other user that might step by.
Just move the var inside the "name" block:
- name: Download apache vars: url: czxcxz shell: wget {{url}}