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
0622e9ff1e
fix non-breaking spaces
2022-12-14 11:47:53 +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
faeb92230b
packweb-apache: manual dependencies resolution
gitea/ansible-roles/pipeline/head This commit looks good
2022-11-06 15:25:17 +01:00
Jérémy Lecour
4050dbea7a
packweb-apache: enable log_forensic module
2022-11-06 15:25:17 +01:00
David Prevot
d67e03e5a2
packweb-apache/files/userlogrotate: tfix (comments).
continuous-integration/drone/push Build is passing
2022-07-19 17:24:04 +02:00
William Hirigoyen (Evolix)
66563d0bf3
[packweb-apache] #66841 : ajout tâche update_userlogrotate.yml
continuous-integration/drone/push Build is passing
2022-07-19 17:19:58 +02:00
William Hirigoyen (Evolix)
9742ec078e
[packweb-apache] Fix unsecable spaces
continuous-integration/drone/push Build is passing
2022-07-19 15:04:25 +02:00
William Hirigoyen (Evolix)
2e54944a24
[packweb-apache] Do gzip logs after web server reload instead of before to address 'file size changed while zipping' error.
continuous-integration/drone/push Build is passing
2022-07-19 15:02:54 +02:00
Jérémy Lecour
cbe7985814
Enforce String notation for mode
2022-06-08 15:38:21 +02:00
Jérémy Lecour
799466788f
lxc-php: preliminary support for PHP 8.1 container
continuous-integration/drone/push Build was killed
2022-02-17 14:50:21 +01:00
William Hirigoyen (Evolix)
e080b37be2
Add Includes in PHPVersion search.
continuous-integration/drone/push Build was killed
2022-02-08 11:11:09 +01:00
Ludovic Poujol
a9d0d0958d
packweb-apache : Support php 8.0
2021-10-18 18:30:47 +02:00
Jérémy Lecour
a5658b7f26
packweb-apache: install phpMyAdmin from buster-backports
2021-07-02 21:18:06 +02:00
Jérémy Lecour
0fe0244116
Update Galaxy metadata (company, platforms and galaxy_tags)
2021-06-28 15:26:28 +02:00
Ludovic Poujol
56c064d86b
Update 'packweb-apache/meta/main.yml'
...
continuous-integration/drone/push Build is passing
Quick hot-fix : Add dependency for php 7.4 to packweb-apache
2021-05-19 16:33:51 +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
9f2125e287
packweb-apache: fix backports for phpmyadmin
continuous-integration/drone/push Build is passing
2021-05-04 16:43:48 +02:00
Jérémy Lecour
e5e4dc95fa
packweb-apache: install phpMyAdmin from buster-backports
2021-05-04 14:57:18 +02:00
Jérémy Lecour
5138065059
Use 'loop' syntax instead of 'with_items'
2021-05-04 14:19:18 +02:00
Mathieu Trossevin
2e29dc2440
lxc-php: Do not bind the mysql socket by default
...
continuous-integration/drone/pr Build is failing
The lxc-php role can be run on a server without mysql. Attempting to
bindmount the mysql socket in such a case cause the lxc container to
fail to start.
This commit add a variable, lxc_php_create_mysql_link defaulting to
false telling ansible if it should bindmount the MySQL socket to the
container.
2021-01-11 15:20:25 +01:00
Mathieu Trossevin
5e13f8da4e
lxc-php: Make mysql socket binding work on fresh install
...
/var/run/mysqld only exist after mysql is installed, as such the role
lxc-php need to run after the role mysql.
Also only cause a restart of the containers when their configuration has
been changed.
For now socket binding might only work for mysql and not mysql-oracle
(it's default socket seems to be /tmp/mysql.sock).
2020-06-17 16:06:54 +02:00
Ludovic Poujol
c7d456471b
packweb-apache: Install zip & unzip by default
2020-06-04 11:34:26 +02:00
Ludovic Poujol
09371b095f
packweb-apache: Don't turn on mod-evasive emails by default
continuous-integration/drone/push Build is passing
2020-05-18 12:03:34 +02:00
Ludovic Poujol
6cf62aec11
(fix) packweb-apache : phpContainer can be run by anyone, set the chmod accordingly to 0755
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2020-04-08 18:12:50 +02:00
Ludovic Poujol
4720329084
(fix) packweb-apache: Fix a regression introduced by bd63e7037f
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2020-04-08 18:10:54 +02:00
Ludovic Poujol
bd63e7037f
packweb-apache: Do the install & conffigure phpContainer script (instead of evoadmin-web role)
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2020-04-08 17:54:43 +02:00
Ludovic Poujol
f442239cec
(fix) packweb-apache: Don't try to install PHPMyAdmin on Buster as it's not available
2020-04-01 18:05:20 +02:00
Ludovic Poujol
a680399608
packweb-apache: Add missing dependency to evoacme role
2020-04-01 17:23:39 +02:00
Ludovic Poujol
9c420eec4f
packweb-apache: Automagically bootstrap the multiphp containers
...
Introducing a new variable `packweb_multiphp_versions: []`.
While set empty, packweb-apache will setup a regular packweb.
When filled with PHP Versions, it will handle :
- LXC Container setup and config (as a dependencie of lxc-php role)
- Ensure evoadmin-web will set the rights versions in the config files
by setting evoadmin_multiphp_versions
Exemple value : `packweb_multiphp_versions: ['php70', 'php73']`
That will call lxc-php to create both PHP 7.0 and PHP 7.3 containers.
2020-04-01 17:17:00 +02:00
Jérémy Lecour
7283e34077
Replace version_compare() with version()
2020-02-25 10:45:35 +01:00
Jérémy Lecour
b8bdedaa2e
packweb-apache: update phpmyadmin package for Debian 10+
...
phpmyadmin_4.6.6-5_all.deb is no longer available, let's use 4.6.6-4
2019-12-31 16:27:05 +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
0873bb49e0
Add evolix prefix to role dependencies
continuous-integration/drone/push Build is passing
2019-11-29 14:19:52 +01:00
Victor LABORIE
6f5e13f8b8
Add evolix prefix to include_role
2019-11-29 14:00:25 +01:00
Jérémy Lecour
bea11352be
Merge branch 'buster' into unstable
2019-09-23 18:34:35 +02:00
Ludovic Poujol
b116c47b58
packweb-apache: Deploy opcache.php to give some insights on PHP's opcache status
continuous-integration/drone/push Build encountered an error
2019-08-21 15:24:58 +02:00
Benoît S.
771c75c1de
all-roles: Dot not use ansible_lsb as it is deprecated
...
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build is passing
We move from `ansible_lsb.codename` to `ansible_distribution_release`.
2019-07-03 09:41:35 +02:00
Benoît S.
0b8681cf59
packweb-apache: install phpmyadmin using .deb for Buster
...
Fixes #64
/!\ Warning: this is a temporary hack!
2019-07-03 09:37:57 +02:00
Jérémy Lecour
5199a384c3
packweb-apache : create phpmyadmin directory if missing
2019-06-27 16:33:11 +02:00
Jérémy Lecour
2b9354b549
re-enable phpmyadmin
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2019-06-27 16:19:17 +02:00
Jérémy Lecour
b773e17560
whitespaces
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build is passing
2019-06-27 16:16:19 +02:00
Jérémy Lecour
bee57a0b3c
change distribution release codename
...
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build is failing
Ansible 2.2 is too old to know about buster.
Let's use LSB for that.
2019-06-18 17:35:28 +02:00
Jérémy Lecour
aa28e9c1b8
change repositories URL
2019-03-21 15:31:58 +01:00
Jérémy Lecour
1d2a648241
whitespaces
2019-01-01 20:04:56 +01:00
Jérémy Lecour
2f8cad3c7c
packweb-apache: mod-security config is already included elsewhere
2018-11-14 17:04:03 +01:00
Patrick Marchand
3eadd7d544
Rajout d'un cron a packweb pour ftpd
...
The cronjob that maintains file size caches for ftpadmin
is not present in the packweb, which leads to things like
spinon-www0 listing all directories as being 0 octets big.
2018-11-13 16:58:29 -05:00
Patrick Marchand
a1973ebbb3
We misunsderstood how modsecurity used the init rules
...
They do not modify files and are necessary for the core rules to function.
2018-11-13 09:59:34 -05:00