Commit graph

42 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 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
Jérémy Lecour bff8fcfebb apt: upgrade packages after all the configuration is done
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/pr Build was killed
2022-01-25 18:25:47 +01:00
Jérémy Lecour 29ec7bdcf2 Remove embedded GPG keys only if legacy keyring is present
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2021-07-04 22:08:47 +02:00
Jérémy Lecour 2f68ae5339 Preliminary support for Bullseye 2021-07-02 20:58:09 +02:00
Jérémy Lecour 454d4c6d30 explicit permissions for APT GPG keys
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-26 13:47:34 +02:00
Jérémy Lecour 4d83f25ae6 fix pipefail option for shell invocations
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-18 14:04:54 +02:00
Jérémy Lecour e65340cb56 Add pipefail option to shell invocations
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-13 15:34:27 +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 58bf79218f remove apt keys specifically from embedded database 2021-05-06 13:43:59 +02:00
Jérémy Lecour 7d08b0a30a rename the tasks for embedded GPG keys
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-06 11:33:19 +02:00
Jérémy Lecour b41a2fd04f fix indentation
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-06 11:31:42 +02:00
Jérémy Lecour 83705a48b8 remove key from trusted.gpg only if file is present
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-06 10:42:12 +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 9cdddd50a8 Move all trusted GPG keys to file repository
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-03 14:23:13 +02:00
Jérémy Lecour a7971abb04 apt: store keys in /etc/apt/trusted.gpg.d in ascii format 2021-05-03 12:02:31 +02:00
Jérémy Lecour 8716ffbb1e apt: fix keyring permissions
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-02 00:34:19 +02:00
Jérémy Lecour 047605a2a2 evolinux-base: use a dearmored signature, stored in the correct location
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-01 17:20:06 +02:00
Jérémy Lecour 66ea07ec29 evolinux-base: copy GPG key instead of using apt-key
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-01 16:50:38 +02:00
Ludovic Poujol 1d8b7c3bea apt: disable APT Periodic
This interfere with our usual workflow (listupgrade)

Note : Using 0 instead of false is intentional, The value is used by the
apt-daily script that except a "0" to disable itself.
2020-11-24 11:19:18 +01:00
Jérémy Lecour 7283e34077 Replace version_compare() with version() 2020-02-25 10:45:35 +01:00
Jérémy Lecour 07fd68b6a4 apt: fix syntax
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-04 18:37:00 +01:00
Jérémy Lecour 72f5dc70f8 apt: hold packages only if package is installed
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-04 18:14:57 +01:00
Jérémy Lecour 27e217467e Change "|changed" with "is changed" 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
Jérémy Lecour 473bcb4cd6 apt: verify that /etc/evolinux is present
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-20 11:34:47 +01:00
Jérémy Lecour 772c333623 apt: remove jessie/buster sources from Gandi servers 2019-10-30 14:32:32 +01:00
Jérémy Lecour a478c773eb apt: check if cron is installed before adding a cron job 2019-09-30 14:12:38 +02:00
Jérémy Lecour c2500827e1 tags and whitespaces 2019-06-21 10:18:54 +02:00
Jérémy Lecour 9b2372720b make sure that /usr/share/scripts exists
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2019-06-17 14:19:01 +02:00
Jérémy Lecour 7cc1777cf5 apt: add a script to manage packages with "hold" mark 2019-05-13 17:48:55 +02:00
Jérémy Lecour 1c5505b36b typo 2019-04-16 16:30:05 +02:00
Ludovic Poujol b5cc808635 apt: Ensure jessie-backport from archives.debian.org is accepted
(typo in the when condition)
2019-04-08 17:51:26 +02:00
Ludovic Poujol 48226ff7b6 apt: Ensure jessie-backport from archives.debian.org is accepted 2019-04-08 16:11:10 +02:00
Jérémy Lecour b15b06d458 add name for some fail modules 2017-11-21 10:17:46 +01:00
Victor LABORIE 17ddda8ed3 apt: use conditionnal instead of handler for update 2017-10-31 15:50:25 +01:00
Jérémy Lecour fae9cd9208 extract APT configuration into apt role 2017-10-10 16:34:53 +02:00
Jérémy Lecour b180ca432b apt: remove a debug task 2017-10-06 01:06:59 +02:00
Gregory Colpart 458a199f1e For GANDI installs, remove useless (and nasty) sources.list.d/*.list files 2017-09-29 01:43:54 +02:00
Gregory Colpart 8e0aa59e47 download gpg in repo, we want to be independant from network as possible 2017-08-23 02:50:17 +02:00
Gregory Colpart 207a2f6011 Improve distribution verification 2017-08-23 01:49:27 +02:00
Jérémy Lecour 62fbbd2016 Rename role "apt-repositories" to "apt" 2017-07-19 08:56:46 +02:00