Commit graph

40 commits

Author SHA1 Message Date
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 665177556e evomaintenance: allow missing API endpoint if APi is disabled 2022-11-26 19:09:05 +01:00
Ludovic Poujol 0e768809b7 evomaintenance: Make it work on non-debian systems 2022-03-15 10:53:16 +01:00
Jérémy Lecour 73f55a42fa forgotten file 2021-08-30 09:26:04 +02:00
Jérémy Lecour 65750d2aa6 evomaintenance: extract a config.yyml tasks file 2021-08-30 09:24:57 +02:00
Jérémy Dubois 60f2f19402 Delete OpenBSD support
All checks were successful
continuous-integration/drone/push Build is passing
The EvoBSD repository must be used for OpenBSD
2021-05-17 10:44:07 +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 ff7f8669ef evomaintenance: install PG dependencies only when needed 2020-02-25 10:43:23 +01:00
Jérémy Lecour 02858692bb evomaintenance: don't configure firewall for database if not necessary
Some checks failed
continuous-integration/drone/push Build is failing
2020-01-23 14:34:03 +01:00
Jérémy Lecour 65d914098c whitespaces
Some checks failed
continuous-integration/drone/push Build is failing
2020-01-09 15:05:44 +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 bd8644ae60 whitespaces 2019-05-14 14:03:03 +02:00
Tristan PILAT d8d4924b5c Add mailevomaintenance.sh along with a cron (disabled by default) in the OpenBSD task to send a mail everyday if something's not commited in /etc 2019-05-11 21:37:00 +02:00
Tristan PILAT 38a905dd8d No need for two tasks to copy evomaintenance script and template, let's use with_items instead 2019-05-11 21:34:10 +02:00
Tristan PILAT 992f279064 Add dependencies for OpenBSD 2019-05-01 23:22:43 +02:00
Tristan PILAT e1e013052c No need to include minifirewall task if the OS is not Debian 2019-05-01 23:21:03 +02:00
Jérémy Lecour f7057a6787 evomaintenance: set default API variable to Null by default 2019-04-26 11:08:10 +02:00
Nicolas Roman 46033ec8ce remove assert for database and add assert for api 2019-04-26 11:06:42 +02:00
Nicolas Roman b0e9dfd109 add git as dependency for debian 2019-04-26 11:06:42 +02:00
Jérémy Lecour d0b3b6d6b8 evomaintenance: database variables must be set or the task fails 2018-12-11 12:08:04 +01:00
Jérémy Lecour 85c779164a evomaintenance: fix role compatibility with OpenBSD 2018-10-12 10:13:27 +02:00
Jérémy Lecour 20e8d9f432 evomaintenance: install dependencies when installing vendored version 2018-10-08 09:37:18 +02:00
Jérémy Lecour 9f3a70926d evomaintenance: tasks/variables to handle minifirewall restarts 2018-09-25 12:14:33 +02:00
Jérémy Lecour 647eda6d9b evomaintenance: variable to force the configuration (default: True) 2018-09-25 12:07:41 +02:00
Jérémy Lecour 2b5e83fa34 evomaintenance: a vendored version is available to install 2018-09-20 17:08:36 +02:00
Jérémy Lecour e8c0e43cf0 evomaintenance: add some tags on tasks 2018-01-02 16:45:45 +01:00
Jérémy Lecour 432a89fe40 evomaintenance: force permissions on config file 2017-12-28 11:01:52 +01:00
Jérémy Lecour 5d549af643 evomainteance should not install the trap itself
Not all users with a shell are sudoers.
2017-09-05 15:24:51 +02:00
Jérémy Lecour 5e949d74fd evomaintenance: check if minifirewall is installed 2017-07-27 21:34:06 -04:00
Jérémy Lecour 62fbbd2016 Rename role "apt-repositories" to "apt" 2017-07-19 08:56:46 +02:00
Jérémy Lecour 404f4445d4 install backports with "tasks_from"
When including a specific tasks file, we bypass the "main" tasks of the role and the conditionals.
That way we don't play useless tasks and don't rely on default values.
2017-05-23 15:13:11 +02:00
Jérémy Lecour f540a91f21 evomaitenance: add evolix publix sources 2017-05-21 11:17:25 +02:00
Jérémy Lecour 9fae99f8dc Minor syntax and whitespaces fixes 2017-05-19 22:29:53 +02:00
Jérémy Lecour 6c2cbe197f evomaintenance: use allow_unauthenticated option 2017-05-09 23:57:24 +02:00
Jérémy Lecour 5b2ab0d8d3 Ansible >= 2.2 supported 2017-03-24 14:15:09 +01:00
Jérémy Lecour 8920ff1ee4 Add "always_run: yes" where it's pertinent
There is also the "check_mode: no", but commented,
for when we switch to Ansible 2.2
2017-01-31 11:45:35 +01:00
Jérémy Lecour b8ebc30ba1 remove scripts_dir variables 2016-12-21 16:12:30 +01:00
Jérémy Lecour c0ab8f99ce Squash: conventions, evolinux, etc-git… 2016-12-21 16:12:30 +01:00