Commit Graph

101 Commits

Author SHA1 Message Date
Jérémy Lecour 4fb49dd6c9
nginx: clarify intent regarding check mode 2024-02-07 15:39:05 +01:00
Jérémy Lecour 2768b3146f
nginx: simpler regex for settings 2024-02-06 08:46:20 +01:00
Jérémy Lecour 8f86584605
nginx: different way of dealing with check-mode 2024-02-06 08:44:48 +01:00
Jérémy Lecour ff233b65a6
remove check-mode protection for handlers
handlers are not supposed to be executed in check-mode since no change should happen in check-mode.
If there is a corner case we should deal with it at the source, not at the handler level.
2024-02-06 08:39:38 +01:00
Jérémy Lecour bf07ef74c3
nginx: take care of « already defined » and « not yet defined » server status suffix in check mode
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2674|15|2659|9|:-1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/446//ansiblelint">Evolix » ansible-roles » unstable #446</a> Details
gitea/ansible-roles/pipeline/head This commit looks good Details
2024-01-11 16:51:20 +01:00
William Hirigoyen 0a590b6679 nginx: fix multiple fails in check mode
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2670|11|2659|11|:-1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/443//ansiblelint">Evolix » ansible-roles » unstable #443</a> Details
gitea/ansible-roles/pipeline/head This commit looks good Details
2024-01-03 11:29:20 +01:00
Jérémy Lecour ab30ea4cde
nginx: keep indentation
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2629|10|2619|6|:-1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/377//ansiblelint">Evolix » ansible-roles » unstable #377</a> Details
gitea/ansible-roles/pipeline/head This commit looks good Details
2023-10-18 22:12:40 +02:00
William Hirigoyen f2eaac0894 nginx: set default server directive in default vhost
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2598|5|2593|5|:-1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/297//ansiblelint">Evolix » ansible-roles » unstable #297</a> Details
gitea/ansible-roles/pipeline/head This commit looks good Details
2023-07-17 17:31:21 +02:00
Jérémy Lecour 00fe225a3c
force: [yes,no] → force [true,false]
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2615|7|2608|177|:+1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/278//ansiblelint">Evolix » ansible-roles » unstable #278</a> Details
gitea/ansible-roles/pipeline/head This commit looks good Details
2023-06-28 13:25:30 +02:00
Jérémy Lecour ee21973371 Use FQCN
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2777|524|2253|2462|:+1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/223//ansiblelint">Evolix » ansible-roles » unstable #223</a> Details
gitea/ansible-roles/pipeline/head This commit looks good Details
Fully Qualified Collection Name
2023-03-20 23:33:19 +01:00
David Prevot dbef71d791 Drop trailing whitespaces
gitea/ansible-roles/pipeline/head This commit looks good Details
2023-01-06 09:54:51 +01:00
Patrick Marchand 1c6fdbf85a Remove warning ignores as they are depreciated
gitea/ansible-roles/pipeline/head This commit looks good Details
Will cause a hard fail in ansible 2.14, so better get rid of them now.
There is no alternative, but the ansible warnings for those modules
are not hard failures anyways.
2022-12-22 11:32:32 -05:00
Brice Waegeneire 71879b999c nginx: Start server once.
Nginx is already started at the end of the main task. Starting the
service before we configure it correctly can put the role as failed if
the default configuration don't work on the host.
2022-07-05 15:57:41 +02:00
Jérémy Lecour 0d1ccc79c3 whitespace
continuous-integration/drone/push Build was killed Details
2022-03-22 15:31:06 +01:00
William Hirigoyen (Evolix) 1fdc0f2566 Fix missing evolinux_server_custom file copy in Nginx role.
continuous-integration/drone/push Build was killed Details
2022-02-15 17:46:14 +01:00
Brice Waegeneire 168b0fa9b7 nginx: Add snippet for custom server block config.
continuous-integration/drone/push Build was killed Details
2022-01-20 10:44:02 +01:00
Jérémy Dubois d38119eb0f nginx : fix variable name and debug
nginx_minimal defined the nginx_package_name_default variable which was not
used instead of the nginx_default_package_name variable

also fixed debug which was reversed, and add another one to be sure which mode
is used
2021-10-18 15:01:59 +02:00
Jérémy Lecour 37cb18f676 nginx: improve tasks naiming 2021-10-02 09:35:17 +02:00
Jérémy Lecour 0fe0244116 Update Galaxy metadata (company, platforms and galaxy_tags) 2021-06-28 15:26:28 +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 5138065059 Use 'loop' syntax instead of 'with_items' 2021-05-04 14:19:18 +02:00
Jérémy Lecour dde2672715 nginx: no more "minimal" mode, but the package remains customizable.
continuous-integration/drone/push Build is passing Details
2021-02-04 11:31:36 +01:00
Jérémy Lecour cff309ff41 nginx: add access to server status on default VHost 2021-02-04 11:30:32 +01:00
Brice Waegeneire 1785e6a500 nginx: fix server-status
continuous-integration/drone/push Build is passing Details
2021-02-03 16:25:08 +01:00
Jérémy Lecour 1d56e002b4 nginx: change from "nginx_status-XXX" to "server-status-XXX"
continuous-integration/drone/push Build is passing Details
2020-12-23 15:53:36 +01:00
Jérémy Lecour 4bf5b1daa6 nginx: read server-status values before changing the config
continuous-integration/drone/push Build is passing Details
2020-06-14 12:49:10 +02:00
Jérémy Lecour e5d4ea3c18 nginx: make default vhost configurable 2020-06-14 12:37:04 +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
Ludovic Poujol ab00a46e19 nginx: fix munin fcgi not working (missing chmod 660 on logs)
continuous-integration/drone/push Build encountered an error Details
2019-08-22 15:14:36 +02:00
Ludovic Poujol 8d71965ec9 nginx: fix munin fcgi not working (missing chmod 660 on logs)
continuous-integration/drone/push Build encountered an error Details
2019-08-22 14:47:32 +02:00
Jérémy Lecour 9a489ccf29 apache/nginx: fix server-status replacement 2019-05-02 12:16:47 +02:00
Jérémy Lecour b6499671fa apache/nginx: add server status suffix in default site if missing 2019-04-26 11:02:02 +02:00
Jérémy Lecour 8e618ce70a apache/nginx: add server status suffix in VHost if missing 2019-04-25 17:12:19 +02:00
Jérémy Lecour 7bb15e7b70 evocheck : add "x-frame-options: sameorigin" for Munin 2019-04-16 10:47:26 +02:00
Jérémy Lecour aa28e9c1b8 change repositories URL 2019-03-21 15:31:58 +01:00
Ludovic Poujol c9ba37614c nginx: Munin url config is now a template to insert the server-status prefix 2018-12-05 16:25:48 +01:00
Jérémy Lecour 06a0f0d9b7 apache/nginx/fail2ban: mention ip_whitelist.yml in README.md 2018-11-02 18:18:22 +01:00
Jérémy Lecour 24ddc78a23 apache/nginx: IP adresses can also be removed 2018-11-02 18:15:17 +01:00
Patrick Marchand b776fc3da2 Make ip whitelist tasks more flexible
Now the list of whitelisted ip addresses can be updated simply by
including the specific tasks in an external playbook without polluting
our role list.

This change takes effect for nginx, apache and fail2ban.
2018-11-02 18:08:23 +01:00
Victor LABORIE 6e6820805d nginx: add tag for ips management 2018-10-19 10:31:45 +02:00
Jérémy Lecour ac1a3e5f09 nginx: cleaner way to overwrite the server status suffix 2018-09-09 23:02:02 +02:00
Jérémy Lecour 17b8b4c3d5 nginx: add a backward compatible variable for backports 2018-08-09 17:13:04 +02:00
Tristan PILAT b095f87f85 Nginx role now handle Nginx installation from backports for either Debian Jessie or Stretch 2018-07-31 16:06:05 +02:00
Jérémy Lecour f5339568ed nginx: don't debug variables in verbosity 0 2018-03-28 21:12:24 +02:00
Jérémy Lecour 1ac3300ade nginx: package name can be specified (default: nginx-full) 2018-02-22 00:10:14 +01:00
Jérémy Lecour 6cb1a5765a whitespaces 2018-02-08 11:11:47 +01:00
Jérémy Lecour c6d3b804d9 nginx: fix basic auth for default vhost 2018-02-08 11:11:47 +01:00
Jérémy Lecour 24a5f0df7e nginx: fix servers status dirname 2018-02-01 12:27:18 +01:00