playbook: Use correctly roles/vars
The previous usage lead to impossilibity of overriding variables defined in role, because they were included forcibly in the tasks for standalone-shared. By using default Ansible apporach to role vars, they can be overriden on playbook basis. /reviewed-on !48
-
Owner
This seems not enough to fix the problem.
The roles vars still been used instead the playbook ones (at least on 2.x):
http://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#id18
So I will remove request_instance_template from vars/main.yml and make it mandatory to be declared on the playbook.
-
Developer
This seems not enough to fix the problem.
That's bad, thank you for checking it out.
The roles vars still been used instead the playbook ones (at least on 2.x): http://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#id18
So it seems that variable order is quite complex in ansible, and relying on it is dangerous.
So I will remove request_instance_template from vars/main.yml and make it mandatory to be declared on the playbook.
Ok, please ping me when it is done or you have MR.