Commit graph

50 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 7a0e0d81d6 Proper jinja spacing
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
2022-12-28 09:03:37 +01:00
David Prevot a1bad43b25 Drop unsigned repository when adding a signed one 2022-12-02 17:40:43 +01:00
Jérémy Lecour 08db230c29 Merge branch 'debian12' into unstable
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
2022-11-27 18:29:57 +01:00
David Prevot 171ece7bba MongoDB: Dimiss apt-key use (#58271) and allow to choose mongodb_version on Jessie
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
2022-11-24 11:13:12 +01:00
Jérémy Lecour 28540247f0 Add signed-by option for additional APT sources
All checks were successful
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
David Prevot 8114f7c89b mongodb: Allow to install version 5.0 on Bullseye
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
2022-10-04 16:55:21 +02:00
Jérémy Lecour 0b41efd188 mongodb: replace version_compare() with version()
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-18 15:54:42 +02:00
Ludovic Poujol 73d6979e72 Various changes on mongodb (support 5.0) + fixes & compatibility
* mongodb: Deny the install on Debian 11 « Bullseye » when the version is unsupported
* mongodb: Support version 5.0 (for buster)
* mongodb: Allow to specify a mongodb version for buster & bullseye
* mongodb: Add missing remount-usr for munin plugins
2021-10-05 15:49:47 +02: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 b5bcd666c6 fix apt gpg keys after rebase from unstable 2021-07-02 21:23:14 +02:00
Jérémy Lecour 8a784c39ab mongodb: create munin plugins directory if missing 2021-07-02 21:16:40 +02:00
Jérémy Lecour 9c8dd743c8 Use python3 packages on Debian 11 and later 2021-07-02 21:16:15 +02:00
Jérémy Lecour c80c354d65 fix keyrings permissions 2021-07-02 21:14:01 +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
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-26 13:47:34 +02:00
Eric Morino 547272eefd Add create diretory for munin plugins
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-19 16:17:08 +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 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
Ludovic Poujol edbc596511 mongodb: Fix issue introduced by 8aa7f6cf33
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-30 11:31:19 +02:00
Jérémy Lecour 8aa7f6cf33 mongodb: install custom munin plugins
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-17 13:48:18 +02:00
Jérémy Lecour 1ade990526 mongodb: fix logrotate patterm on Debian buster
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-05 11:02:54 +02:00
Jérémy Lecour 71a9ac8424 mongodb: mention Buster support in README
All checks were successful
continuous-integration/drone/push Build is passing
2020-04-03 10:12:20 +02: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
Jérémy Lecour 5eff84bc07 mongodb: fix systemd service
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-24 16:43:24 +02:00
Jérémy Lecour 76864f226e WIP mongodb: compatibility with Debian 10
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-24 15:36:51 +02:00
Jérémy Lecour f09a405d84 mongodb: still incompatible with Debian 10 2019-09-23 22:18:52 +02:00
Jérémy Lecour ec535b036c apt module: Use "state: present" instead of "state: installed"
"state: installed" is deprecated in Ansible 2.5
2018-05-18 09:33:25 +02:00
Jérémy Lecour beeb7de0af mongodb: rename logrotate script 2018-04-05 18:43:29 +02:00
Jérémy Lecour 3b8c57faee mongodb: allow unauthenticated packages for Jessie 2018-04-05 15:23:12 +02:00
Jérémy Lecour ad4714856b mongodb: don't overwrite config by default 2018-03-13 09:40:37 +01:00
Jérémy Lecour 54159f8e87 mongodb: configuration is forced by default but it's configurable 2018-02-23 18:44:26 +01:00
Jérémy Lecour ad80bc9ff7 mongodb: install python-pymongo for monitoring
Backport from commit 0858f53b2a70718d8b1f4567a4348c3e9b5c4faf
2018-01-20 19:33:18 +01:00
Jérémy Lecour 762d2d7152 mongodb: fix log/lock files paths for Jessie 2017-12-07 15:58:43 +01:00
Jérémy Lecour 0c8389baf9 Adapt mongodb role for Stretch
Everything changes :
* package source
* service name
* version
2017-11-21 16:51:19 +01:00
Jérémy Lecour fc23090fca MongoDB: fix syntax mistake 2017-09-04 17:17:51 +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 a5db321717 quick review of mongodb role, few improvments and disable it for stretch because not ready 2017-08-23 01:44:07 +02:00
Gregory Colpart 41329af173 Remove dynamic add of whitelist Squid proxy 2017-08-23 01:26:57 +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 bc99227259 Better squid/squid3 whitelist and reload 2017-07-12 12:17:33 +02:00
Gregory Colpart d59e2c0127 rename mongodb-org -> mongodb 2017-07-03 17:36:04 +02:00