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
7a0e0d81d6
Proper jinja spacing
gitea/ansible-roles/pipeline/head This commit looks good
2022-12-28 09:03:37 +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
08db230c29
Merge branch 'debian12' into unstable
gitea/ansible-roles/pipeline/head This commit looks good
2022-11-27 18:29:57 +01:00
David Prevot
057224fb38
Skip task in check_mode
gitea/ansible-roles/pipeline/head This commit looks good
2022-11-25 15:56:19 +01:00
Jérémy Lecour
28540247f0
Add signed-by option for additional APT sources
gitea/ansible-roles/pipeline/head This commit looks good
2022-11-02 23:17:08 +01:00
Jérémy Lecour
f531460f49
Use proper keyrings directory for APT version
...
Debian 9 → 11 : /etc/apt/trusted.gpg.d
Debian 12 : /etc/apt/keyrings
2022-11-02 23:16:32 +01:00
William Hirigoyen
b1138c07ee
lxc-php: Fix register instruction in wrong order and indentation
gitea/ansible-roles/pipeline/head This commit looks good
2022-11-02 11:10:56 +01:00
William Hirigoyen
18fb89234c
lxc-php: restart container instead of reload after php-fpm unit's umask change.
2022-10-26 15:23:46 +02:00
William Hirigoyen (Evolix)
2692ac5661
Ajoute l'umask 0007 au service php-fpm
2022-10-26 09:56:33 +02:00
David Prevot
a55d06f58e
PHP: Install php-xml now that it has been split off
gitea/ansible-roles/pipeline/head This commit looks good
2022-08-17 16:25:48 +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
Eric Morino
0a244894eb
Add fix repository in source.list for bullseye
continuous-integration/drone/push Build was killed
2022-01-26 11:07:10 +01:00
Jérémy Lecour
93929864be
lxc-php: use bullseye-php80 for php80 container
continuous-integration/drone/push Build was killed
2022-01-25 17:45:17 +01:00
Mathieu Trossevin
1902c40c3c
lxc-php: Fix config for opensmtpd on bullseye
continuous-integration/drone/pr Build was killed
2022-01-25 11:57:41 +01:00
Eric Morino
2dfd0c0706
Add squid logrotate
2021-10-11 11:03:34 +02:00
Brice Waegeneire
616ead41d5
lxc-php: Add php 8.0 support
2021-10-05 14:38:40 +02:00
Brice Waegeneire
45b7ce3486
lxc-php: Use Debian bullseye package for php74
2021-09-14 14:42:31 +02:00
Jérémy Lecour
51d4ec1bb2
php: remove php-gettext for 7.4
2021-07-02 21:10:04 +02:00
Jérémy Lecour
2f68ae5339
Preliminary support for Bullseye
2021-07-02 20:58:09 +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
454d4c6d30
explicit permissions for APT GPG keys
continuous-integration/drone/push Build is passing
2021-05-26 13:47:34 +02:00
Jérémy Lecour
7dc6f0b849
remove trailing whitespaces
2021-05-13 15:23:39 +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
3dde4ee6d3
Rename Sury GPG key
continuous-integration/drone/push Build is passing
2021-05-06 13:44:22 +02:00
Jérémy Lecour
5138065059
Use 'loop' syntax instead of 'with_items'
2021-05-04 14:19:18 +02:00
Gregory Colpart
f260fedbae
fix GPG key install for APT
continuous-integration/drone/push Build is passing
2021-04-26 22:36:03 +02:00
Ludovic Poujol
32f2a29161
lxc-php: No need of apt-key for php7.4
continuous-integration/drone/push Build is passing
2021-03-31 11:51:26 +02:00
Ludovic Poujol
f2ebe2d878
lxc-php: Add php 7.4 support
continuous-integration/drone/push Build is passing
2021-03-31 10:57:29 +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
d7aed91043
packweb-multiphp: Change default configuration for compatibility
...
continuous-integration/drone/pr Build is failing
/var/run is now /run (and it is what is used in the .service file)
Have a default directory configured as bind target so things works by default
2020-10-19 17:33:58 +02:00
Mathieu Trossevin
d33b4baef1
Make container restart an handler
2020-10-19 14:16:53 +02: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
Mathieu Trossevin
49b20f9b12
lxc-php: Have mysqld.sock inside of a directory
...
Bind mount don't seems to work on a file so the default socket is now
always named mysqld.sock and the configurable variable is
php_conf_mysql_socket_dir that define the directory the socket will be
in.
2020-06-17 16:06:54 +02:00
Mathieu Trossevin
1d9ab0f1f3
Allows using localhost to connect to MySQL in lxc
...
Add 'php_conf_mysql_default_socket' variable to lxc-php role that
configure both the lxc containers and PHP so that a local MySQL database
may be used through localhost.
The PHP containers will automount /var/run/mysqld/mysqld.sock (the
default path to the mysql socket) to the path defined by the variable
'php_conf_mysql_default_socket' which will be the path used by php to
contact MySQL both with mysqli and PDO_MYSQL.
2020-06-17 16:06:53 +02:00
Ludovic Poujol
ebffccae59
lxc-php: Do --no-install-recommends for ssmtp/opensmtpd
continuous-integration/drone/push Build is passing
2020-06-05 11:01:22 +02:00
Ludovic Poujol
186f3d90b9
lxc-php: Install opensmtpd as intended
2020-06-05 10:57:49 +02:00
Ludovic Poujol
90704dc712
lxc-php: Don't disable putenv() by default in PHP settings
2020-06-04 11:51:25 +02:00
Ludovic Poujol
ead0b7fd88
lxc-php: Install php-sqlite by default
continuous-integration/drone/push Build is passing
2020-06-04 11:42:17 +02:00
Ludovic Poujol
bd201e8791
(change) lxc-php: refactor tasks for better maintainability (again)
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2020-04-08 17:58:42 +02:00
Ludovic Poujol
135a089341
(change) lxc-php: Use OpenSMTPD for Stretch/Buster containers, and ssmtp for Jessie containers
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2020-04-01 17:23:39 +02:00
Ludovic Poujol
8bc4ff4ada
lxc-php & webapps/evoadmin-web: Commit missing fixes
2020-04-01 17:17:00 +02:00
Victor LABORIE
47b263e411
lxc-php: fix php56-fpm handler name
2020-04-01 17:17:00 +02:00
Ludovic Poujol
e6f2bbb331
lxc-php: An almost complete rewrite ** BREAKING **
...
This is a breaking change as lxc-php should now be called for *each* php
containers we want, with the correct lxc_php_version variable.
Current valid values are :
- php56
- php70
- php73
Other changes includes :
- LXC Containers are created by calling lxc as a dependency of the role.
- Relying on lxc_container module to do commands into the container
(instead of the command module)
- PHP 7.3 container is now a Debian Buster container
- All containers will have opensmtpd to relay emails to postfix on the
host system.
2020-04-01 17:17:00 +02:00
Victor LABORIE
6f5e13f8b8
Add evolix prefix to include_role
2019-11-29 14:00:25 +01:00
Jérémy Lecour
12cebfa71c
lxc-php: refactor tasks for better maintainability
2019-10-21 15:26:03 +02:00
Jérémy Lecour
beb39988e7
git ignore .swp files
continuous-integration/drone/push Build is passing
2019-10-11 21:27:01 +02:00
Ludovic Poujol
e13543bf07
lxc-php: Don't remove the default pool - That's making PHP-FPM sad :(
continuous-integration/drone/push Build is passing
2019-06-26 11:10:23 +02:00