How to pass variables from one role downstream to other dependency roles with ansible?
问题 I have a generic webserver role that is using another nginx role to spawn new vservers. webserver/meta/main.yml looks like: allow_duplicates: yes dependencies: - role: nginx name: api vserver frontend_port: "{{ frontend_port }}" domain: "{{ api_domain }}" backend_host: 127.0.0.1 - role: nginx name: portal vserver domain: "{{ portal_domain }}" backend_host: 127.0.0.1 The problem is that these variables are supposed to be defined inside the webserver-role/vars/(test|staging).yml Is seems that