
PLAY [Convert YAML dict to AST then convert AST to HAProxy.] *******************

TASK [debug] *******************************************************************
ok: [localhost] => 
    msg: |-
        global
            log /var/run/log local0
            maxconn 4096
            user nobody
            group nobody
            daemon

        defaults
            log global
            mode http
            retries 3
            option httplog
            option dontlognull
            timeout connect 5s
            timeout client 30s
            timeout server 30s

        frontend http_front
            bind *:80
            acl is_api path_beg /api
            acl is_static path_beg /static || path_end -i .jpg .png .css
            default_backend web_servers

        backend web_servers
            balance roundrobin
            server web1 10.0.1.10:8080 check

        backend api_servers
            balance roundrobin
            server api1 10.0.2.10:8080 check

        backend static_servers
            balance roundrobin
            server static1 10.0.3.10:8080 check

PLAY RECAP *********************************************************************
localhost                  : ok=1    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   

