266fd61ad7
Both include_role and import_role expect role's name to be given via "name" param instead of "role". This worked but caused errors with ansible-lint. See: https://review.opendev.org/694779 Change-Id: I388d4ae27111e430d38df1abcb6c6127d90a06e0
13 lines
597 B
YAML
13 lines
597 B
YAML
---
|
|
# Configure HAProxy for one cell for a particular console proxy type.
|
|
- import_role:
|
|
name: haproxy-config
|
|
vars:
|
|
project_services: "{{ cell_proxy_project_services | namespace_haproxy_for_cell(cell_name) }}"
|
|
# Default is necessary because this play may not be targetting the hosts in
|
|
# the cell_proxy_group group, and therefore they would not have role
|
|
# defaults defined. If we put this variable in group_vars, then it cannot
|
|
# be overridden by the inventory.
|
|
cell_name: "{{ hostvars[groups[cell_proxy_group][0]]['nova_cell_name'] | default('') }}"
|
|
tags: always
|