Comments (4)
Glad you found a workaround. I did a commit to add the capability: 3abed7d
Add this to your playbook:
haproxy_stats_listener_options
- dontlog-normal
from ansible-haproxy.
nice, thank you!
from ansible-haproxy.
Hi @haydenseitz
Yes, as documented in the README
(in the stats
section), you could use the haproxy_stats_options
variable to set a list of options.
haproxy_stats_options:
- dontlog-normal
EDIT
After checking, the haproxy_stats_options
parameter will only add stats
options. There is currently no way to add option
to the stats
listrener.
Here is the template: https://github.com/uoi-io/ansible-haproxy/blob/master/templates/etc/haproxy/haproxy-stats.cfg.j2
from ansible-haproxy.
I was going to submit a PR to add that functionality, but I was able to set up a stats page with options using haproxy_frontend
:
haproxy_stats: false
haproxy_frontend:
- stats:
binds:
- :9001
stats:
- enable
- refresh 10s
- show-legends
- show-node
- hide-version
- uri /
options:
- dontlog-normal
from ansible-haproxy.
Related Issues (17)
- crt-base entry in template wrong
- variable capture parsed incorretly by haproxy-frontend.cfg.j2 HOT 4
- haproxy 1.8 HOT 4
- How to use Ansible-Haproxy? HOT 1
- Support for Ansible collections ? HOT 1
- Empty default var leads to wrong haproxy.cfg
- Provide Tags for stable releases HOT 1
- reqrep/reqirep in frontend/backend templates
- Missing double quotes on entries in variable haproxy_default_errorfiles ? HOT 4
- ansible.errors.AnsibleUndefinedVariable: 'haproxy_stats_listener_options' is undefined HOT 1
- Missing options http-request in listen stats block HOT 2
- Improve idempotency in configuration file HOT 4
- Can't define multiple http_check options HOT 3
- "include" is deprecated
- [question] How to add "http-reuse <foo>" to section e.g. "defaults"? HOT 1
- Fix RockyLinux 9 Molecule test HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-haproxy.