devops-coop / ansible-haproxy

Installs and configure HAProxy
Apache License 2.0
96 stars 97 forks source link

can't get the correct result #43

Closed ozbillwang closed 8 years ago

ozbillwang commented 8 years ago

my groups_var file:

haproxy_listen:
  - name: ssl
    bind: "{{ ansible_default_ipv4.address }}"
    ssl:
      cert: /etc/pki/tls/certs/ssl.pem no-sslv3

But I got this:

listen ssl
   bind 1 ssl crt /etc/pki/tls/certs/ssl.pem no-sslv3
   bind 0 ssl crt /etc/pki/tls/certs/ssl.pem no-sslv3
   bind . ssl crt /etc/pki/tls/certs/ssl.pem no-sslv3
   bind 1 ssl crt /etc/pki/tls/certs/ssl.pem no-sslv3
   bind . ssl crt /etc/pki/tls/certs/ssl.pem no-sslv3
   bind 1 ssl crt /etc/pki/tls/certs/ssl.pem no-sslv3
   bind . ssl crt /etc/pki/tls/certs/ssl.pem no-sslv3
   bind 2 ssl crt /etc/pki/tls/certs/ssl.pem no-sslv3

should be:

listen ssl
   bind 10.1.1.2 ssl crt /etc/pki/tls/certs/ssl.pem no-sslv3
ozbillwang commented 8 years ago

ic. the bind has to be array

haproxy_listen:
  - name: ssl
    bind: 
       - "{{ ansible_default_ipv4.address }}"
    ssl:
      cert: /etc/pki/tls/certs/ssl.pem no-sslv3