Comment 8 for bug 2051317

Revision history for this message
zrsolis (zrsolis) wrote :

Well we got a bit farther with the hack:

PLAYBOOK: haproxy_service_config.yml *************************************************************************************
2 plays in /etc/ansible/ansible_collections/openstack/osa/playbooks/haproxy_service_config.yml
ERROR! The field 'hosts' has an invalid value, which includes an undefined variable. The error was: 'service_group' is undefined. 'service_group' is undefined

The error appears to be in '/etc/ansible/ansible_collections/openstack/osa/playbooks/haproxy_service_config.yml': line 25, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- hosts: "{{ service_group }}"
  ^ here
We could be wrong, but this one looks like it might be an issue with
missing quotes. Always quote template expression brackets when they
start a value. For instance:

    with_items:
      - {{ foo }}

Should be written as:

    with_items:
      - "{{ foo }}"

EXIT NOTICE [Playbook execution failure] **************************************
===============================================================================