Commit graph

32 commits

Author SHA1 Message Date
Mathieu Trossevin 7c632352a0
Replace the include module with include_tasks or import_tasks
The behaviour of the `include` module is badly defined (it try to choose
between statically importing the tasks and dynamically including them)
and can cause problems depending on any number of constraints (mostly if
it choose the wrong behaviour).

Replace it with the `import_tasks` (always statically import tasks) unless
the `include` is in a loop in which case we replace it with
`include_tasks` (always dynamically include tasks).
2023-01-03 14:43:42 +01:00
Jérémy Lecour 1728eaee68 Revert "Add “when: not ansible_check_mode” to allow more --check"
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
This reverts commit fafff25c20.
This reverts commit e64471c5a8084f95a8e6f955d3fa918c55b8e846.
2022-12-14 07:41:18 +01:00
David Prevot fafff25c20 Add “when: not ansible_check_mode” to allow more --check
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
2022-12-02 17:40:43 +01:00
Jérémy Lecour abb14e5b52 haproxy: add haproxy_allow_ip_nonlocal_bind to set sysctl value
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-22 15:32:10 +02:00
Jérémy Lecour 2ed77c60f0 Improve Ansible syntax
replace « x | changed » by « x is changed »
add explicit « bool » filter
use « length » filter instead of string comparison
2021-05-09 23:06:42 +02:00
Jérémy Lecour debc4a82ca Use 'loop' syntax instead of 'with_first_found'
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-04 13:39:47 +02:00
Jérémy Lecour b3a62aa9d8 haproxy: use loop syntax instead of with_first_found
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-03 18:02:57 +02:00
Jérémy Lecour 74ac4c7570 haproxy: add tags 2020-12-23 15:42:57 +01:00
Jérémy Lecour 9bdd5ad9e7 haproxy: rotate logs with date extension and immediate compression
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-22 19:02:29 +02:00
Jérémy Lecour ce7468816f haproxy: deport SSL tuning to Mozilla SSL generator
All checks were successful
continuous-integration/drone/push Build is passing
There are too many combinations and they change every so often.
It's better to direct the user to the generator to have a good 
configuration.
2020-06-15 22:47:08 +02:00
Jérémy Lecour 011761eb8f haproxy: add deny_ips file to reject connections
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-14 23:28:29 +02:00
Jérémy Lecour f47af9f54f haproxy: preconfigure SSL with defaults
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-14 12:37:04 +02:00
Jérémy Lecour 4c71ea2012 haproxy: enable stats frontend with access lists
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-09 11:41:33 +02:00
Jérémy Lecour 2ca7872eef haproxy: syntax and whitespaces
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-04 11:22:58 +02:00
Jérémy Lecour 7fe89d2419 haproxy: add another variable for configuration
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-11 21:24:32 +02:00
Jérémy Lecour edb5ace762 haproxy: add a variable to keep the existing configuration
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-10 11:27:39 +02:00
Jérémy Lecour 66ab052ac7 haproxy: validate is a module attribute 2019-05-15 17:35:20 +02:00
Jérémy Lecour e614fe4d85 haproxy: verify → validate 2019-05-15 17:34:26 +02:00
Jérémy Lecour 303dbf9653 haproxy: verify configuration before enabling 2019-05-15 17:30:40 +02:00
Victor LABORIE 8cd689f9b4 haproxy: move check_haproxy_stats to nagios-nrpe role 2018-09-28 15:21:42 +02:00
Tristan PILAT e83ca81776 Haproxy role now handle haproxy installation from backports for Debian Stretch 2018-07-24 12:29:42 +02:00
Jérémy Lecour ec535b036c apt module: Use "state: present" instead of "state: installed"
"state: installed" is deprecated in Ansible 2.5
2018-05-18 09:33:25 +02:00
Victor LABORIE 2727a6dfa1 haproxy: add Munin graphes 2018-02-13 16:37:40 +01:00
Jérémy Lecour a9278c0d70 haproxy: add a Nagios check 2017-09-19 09:37:38 +02:00
Gregory Colpart df6170404f typo in include file 2017-08-29 00:01:26 +02:00
Jérémy Lecour ec9e8d3d8b merge haproxy roles 2017-07-13 09:47:29 +02:00
Victor LABORIE ea72b967a6 haproxy: add tags 2017-05-12 11:41:25 +02:00
Jérémy Lecour fd5324db84 haproxy: use APT preferences to install haproxy from backports 2017-05-10 14:33:36 +02:00
Jérémy Lecour 597ae12dca haproxy: simplify template selection 2017-05-10 14:33:36 +02:00
Jérémy Lecour 03cc0ecf1d HAProxy: add templates lookup and documentation 2017-05-10 11:47:14 +02:00
Jérémy Lecour 478e9a8272 replace "state: installed" with "state: present" 2017-01-12 17:37:48 +01:00
Jérémy Lecour 999e98cc29 HAProxy: packages only
This is just the foundation of a much more customized HAProxy role.
It barely installs the package and provides handlers
2016-12-29 17:25:01 +01:00