Having issues using a variable in a playbook

Hi there,

I’m trying to build python 3.4.2 in a semi-idempotent way. I see mpdehaan’s comments on it and didn’t have any issues following those.

The issue I’m having is that the variables defined in common.yml aren’t being carried through to the second play (python-app-server). I would like to simply define vars_files in the first play and have it carry forward. Am I just thinking about it wrong?

Here’s my playbook’s site.yml file, as I would like it to look:
`

Hi Benjamin

Look at specifying variables using group_vars or host_vars (see http://docs.ansible.com/intro_inventory.html#splitting-out-host-and-group-specific-data)

There is a special group ‘all’ of which all hosts are automatically a member.

Regards
Tom

vars/vars_files/registered vars are in the single play scope, if you
want common.yml vars present in other plays you need to import it
there also.