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
21ab9b1e68
Revert ce5e4b12c6
gitea/ansible-roles/pipeline/head This commit looks good
2022-12-14 11:30:35 +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
ce5e4b12c6
Apache: Drop duplicate when keys
gitea/ansible-roles/pipeline/head This commit looks good
2022-12-12 11:54:00 +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
3c9be8d913
fix more Ansible syntax
2021-05-09 23:20:15 +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
Ludovic Poujol
d56c545183
apache: new variable for mpm mode (+ updated default config accordingly)
...
continuous-integration/drone/push Build is passing
Also, itk package will only be installed if required
2021-04-19 17:35:49 +02:00
Jérémy Lecour
8c54fd8c16
apache: new variables for logrotate + server-status
continuous-integration/drone/push Build is passing
2021-01-05 17:47:56 +01:00
Jérémy Lecour
7283e34077
Replace version_compare() with version()
2020-02-25 10:45:35 +01:00
Jérémy Lecour
e04d881988
replace "with_items" in apt modules
2019-12-31 16:18:56 +01:00
Jérémy Lecour
79bb6103b8
Change "|version_compare" with "is version_compare"
2019-12-31 10:18:19 +01:00
Victor LABORIE
6f5e13f8b8
Add evolix prefix to include_role
2019-11-29 14:00:25 +01:00
Jérémy Lecour
9a489ccf29
apache/nginx: fix server-status replacement
2019-05-02 12:16:47 +02:00
Jérémy Lecour
bb956fb5e7
apache: logrotate replacement is more subtle/precise
...
It replaces only the proper directive and not every occurence of the
word.
2018-08-23 13:02:25 +02:00
Jérémy Lecour
5c5361dbb5
apache: customize logrotate (52 weeks)
2018-04-22 18:10:47 +02:00
Jérémy Lecour
86c2bcb398
apache: /usr/share/scripts exists
2018-01-18 17:08:29 +01:00
Jérémy Lecour
b634840b42
apache/nginx: server status suffix
2018-01-03 10:05:20 +01:00
Jérémy Lecour
28954e634c
whitespaces
2018-01-03 10:05:20 +01:00
Victor LABORIE
1c48df025c
Move /usr rw remount into remount-usr role
2017-11-07 13:34:05 +01:00
Victor LABORIE
2d1504ddf6
apache: add somes modules by defaults
2017-10-27 15:01:06 +02:00
Jérémy Lecour
be84ab434e
apache: install save_apache_status.sh
2017-10-07 13:12:01 +02:00
Jérémy Lecour
2395777194
apache: no need for server status suffix anymore
...
The location is restricted, so we don't need to obfuscate
2017-10-07 13:11:25 +02:00
Jérémy Lecour
ddeb39b886
apache: phpmyadmin is not managed here anymore
2017-10-07 13:03:43 +02:00
Jérémy Lecour
dc3b735445
apache: cleanup munin tasks
2017-10-07 11:54:31 +02:00
Benoît S.
50cba28f7b
Merge branch 'apache-munin' into unstable
2017-10-06 15:42:45 +02:00
Gregory Colpart
87ef758891
we need force=no for files who will be lineinfile/blockinfile
2017-09-07 02:32:08 +02:00
Gregory Colpart
be4e811c47
phpMyAdmin configuration
2017-09-07 02:26:35 +02:00
Gregory Colpart
2bb7367edf
standardization for Debian versions : we use "jessie" or "9 or later" to prepare buster smoothly as possible
2017-08-18 03:50:30 +02:00
Jérémy Lecour
17bdfc8fef
apache: cleanup log2mail tasks
2017-08-12 12:51:28 -04:00
Jérémy Lecour
a4b917152d
apache: cleanup munin tasks
2017-08-12 12:51:15 -04:00
Jérémy Lecour
69ed3ecf05
apache: fix log2mail config permissions
2017-08-12 12:35:37 -04:00
Jérémy Lecour
03aae520e8
apache: server-status only for default vhost
2017-07-28 15:28:19 -04:00
Jérémy Lecour
aaded13176
apache: add missing reload notifications
2017-07-28 15:24:26 -04:00
Gregory Colpart
f49e720efd
Add log2mail stuff for Apache
2017-07-23 00:54:52 +02:00
Gregory Colpart
a0ccc2e9d5
Review of role Apache, sync with https://wiki.evolix.org/HowtoApache
2017-07-22 22:40:31 +02:00
Jérémy Lecour
3e1a600fd5
apache: enable Munin plugins and CGI mode
2017-07-19 18:25:28 +02:00
Benoît S.
54d9dbf7aa
Implement #1092 . We use custom error pages for Apache
...
Note: The pack web will maybe modify these pages to have Evolix logo or theme,
or other things to customize.
2017-07-18 15:40:04 +02:00
Jérémy Lecour
b4ca2dd686
apache/evoadmin : split jessie/stretch
2017-07-13 14:09:34 +02:00
Jérémy Lecour
3d77f086ed
Disable random URL for server-status (probably temporary)
2017-07-06 17:14:28 +02:00
Jérémy Lecour
242c005f6d
Fix default web page
...
* split 80/443
* use modern authorization syntax
* reorganize the VHost file
2017-07-06 17:14:28 +02:00
Jérémy Lecour
34f6354a9e
random suffices for phpmyadmin abnd server-status with apg
2017-07-06 17:14:28 +02:00
Jérémy Lecour
0e0bc1cbbd
Split default vhost into nginx ad apache roles
2017-07-06 17:14:28 +02:00
Jérémy Lecour
2084e2e53e
evoadmin/packweb: end of first pass
2017-07-03 18:22:24 +02:00
Benoît S.
58dd5c3817
WIP: More things done for packweb...
...
PHP, Awstats, ...
2017-07-03 17:56:59 +02:00
Benoît S.
6a225e469b
[WIP]: First pass for packweb-apache
2017-07-03 17:55:00 +02:00
Jérémy Lecour
9fae99f8dc
Minor syntax and whitespaces fixes
2017-05-19 22:29:53 +02:00
Jérémy Lecour
5b2ab0d8d3
Ansible >= 2.2 supported
2017-03-24 14:15:09 +01:00
Jérémy Lecour
83c8faab2d
Apache: permissions mode with leading 0
...
… even in string form
2017-03-03 12:23:13 +01:00