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"
...
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
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
continuous-integration/drone/push Build is passing
2022-06-22 15:32:10 +02:00
Jérémy Lecour
2f68ae5339
Preliminary support for Bullseye
2021-07-02 20:58:09 +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'
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
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
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
...
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
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
continuous-integration/drone/push Build is passing
2020-06-14 12:37:04 +02:00
Jérémy Lecour
7f54b8ab60
haproxy: adapt backports installed package list to distibution
2020-06-14 12:37:04 +02:00
Jérémy Lecour
4c71ea2012
haproxy: enable stats frontend with access lists
continuous-integration/drone/push Build is passing
2020-06-09 11:41:33 +02:00
Jérémy Lecour
2ca7872eef
haproxy: syntax and whitespaces
continuous-integration/drone/push Build is passing
2020-06-04 11:22:58 +02:00
Jérémy Lecour
27e217467e
Change "|changed" with "is changed"
2019-12-31 16:18:56 +01:00
Jérémy Lecour
e04d881988
replace "with_items" in apt modules
2019-12-31 16:18:56 +01:00
Victor LABORIE
6f5e13f8b8
Add evolix prefix to include_role
2019-11-29 14:00:25 +01:00
Jérémy Lecour
7fe89d2419
haproxy: add another variable for configuration
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
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
db683ea9c3
Fix role - shift haproxy_apt_preferences file to the templates directory
2018-07-24 15:43:45 +02:00
Tristan PILAT
e83ca81776
Haproxy role now handle haproxy installation from backports for Debian Stretch
2018-07-24 12:29:42 +02:00
Tristan PILAT
5f09eac22e
Include remount-usr in haproxy nagios task
2018-06-14 14:28:19 +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
df891f6aee
haproxy: fix Munin plugin dependencies
2018-02-14 14:10:00 +01:00
Victor LABORIE
cbf64417bf
haproxy: Munin plugin need a Debian Package
2018-02-13 16:49:24 +01: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
62fbbd2016
Rename role "apt-repositories" to "apt"
2017-07-19 08:56:46 +02:00
Jérémy Lecour
dbf4a3d0fa
haproxy/nginx: add sources if backports are needed
2017-07-13 14:17:25 +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