Commit graph

86 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
William Hirigoyen 6c4243f3e1 postgresql: logrotate with dateext and right permissions
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
2023-01-03 10:56:19 +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
Jérémy Lecour 8eae5bba63 Use systemd module instead of command 2022-12-28 09:02:17 +01:00
Eric Morino ab3e648f18 Add variable for fix logging
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
2022-12-15 14:47:04 +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 b36d4c4766 various fixes for Debian 12 2022-11-06 15:25:17 +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
Ludovic Poujol b3ac39decd postgresql: Fix task order when using pgdg repo & Install the right pg version
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-09 10:33:28 +02:00
Jérémy Lecour 4d1d77faaf postgresql: add variable to configure binding addresses (default: 127.0.0.1) 2022-06-09 07:41:52 +02:00
Jérémy Lecour bcaacdf57f postgresql: fix nested loop for Munin plugins
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-08 15:39:34 +02:00
Jérémy Lecour 0cbdda840d Explicit permissions for systemd overrides
Some checks reported errors
continuous-integration/drone/push Build was killed
2022-02-03 14:18:20 +01:00
Jérémy Lecour b293cf2cf9 Install python 2 or 3 libraries according to running python version 2021-09-30 17:05:10 +02:00
Jérémy Lecour 437d2986ae better python3 modules management 2021-09-29 18:39:29 +02:00
Jérémy Lecour 74ab96d67f loop syntax and whitespaces 2021-08-27 11:01:28 +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 9c8dd743c8 Use python3 packages on Debian 11 and later 2021-07-02 21:16:15 +02:00
Jérémy Lecour 2f68ae5339 Preliminary support for Bullseye 2021-07-02 20:58:09 +02:00
Jérémy Lecour f082cb652a postgresql: rename GPG key 2021-06-28 15:56:19 +02:00
Jérémy Lecour 0fe0244116 Update Galaxy metadata (company, platforms and galaxy_tags) 2021-06-28 15:26:28 +02:00
Eric Morino af9b1a4766 Fix main.yml for postgresql role
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-21 11:35:17 +02:00
Eric Morino cb257ef927 Add support debian 13 for postgresql rôle and PG13
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-21 11:31:50 +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 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 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 485ec39674 Use 'loop' syntax instead of 'with_nested' 2021-05-04 14:29:50 +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
Brice Waegeneire 1576375417 postgresql: Fix postgresql@.service customization
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-08 14:46:38 +01:00
Eric Morino c324866cd2 Add set variables for debian stretch and jessie
All checks were successful
continuous-integration/drone/push Build is passing
2020-12-07 16:45:32 +01:00
Ludovic Poujol 1160a5e809 postgresql: correct confitinal on set_fact
All checks were successful
continuous-integration/drone/push Build is passing
2020-12-07 16:43:59 +01:00
Eric Morino 0f7dcb57b1 add postgresql_version to empty
All checks were successful
continuous-integration/drone/push Build is passing
2020-12-07 16:24:11 +01:00
Eric Morino 2a94a3bdf1 fix packages_buster
All checks were successful
continuous-integration/drone/push Build is passing
2020-12-07 16:21:57 +01:00
Eric Morino 5522f822f7 add set facts for buster
All checks were successful
continuous-integration/drone/push Build is passing
2020-12-07 16:18:56 +01:00
Eric Morino ae07d508cf Fix key and update just after add pgdg repo key
All checks were successful
continuous-integration/drone/push Build is passing
2020-11-30 10:51:34 +01:00
Eric Morino aa62555e9e Fix name file preference for PGDG repository 2020-11-27 11:07:18 +01:00
Eric Morino 6c4f696ec5 Set handler postgresql with systemctl daemon-reload
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-09 18:04:22 +01:00
Eric Morino 0bda633b0c Override Unit systemd with OMkill less 2020-03-09 18:04:22 +01:00
Eric Morino 61e007d22b Fix logrotate configuration 2020-03-09 14:40:10 +01:00
Jérémy Lecour 37b8d1fbc4 fix syntax 2020-03-02 20:37:35 +01:00
Jérémy Lecour 7283e34077 Replace version_compare() with version() 2020-02-25 10:45:35 +01:00
Patrick Marchand c195806918 Allow different postgres versions on buster and stretch
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-06 16:06:34 -05:00
Eric Morino 3740a6782b Add packages dependencies for Postgis
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-21 15:48:03 +01:00
Eric Morino c4ede03f3a Add package list in board for compatibility Ansible 2.7
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-09 15:40:47 +01:00
Jérémy Lecour 79bb6103b8 Change "|version_compare" with "is version_compare" 2019-12-31 10:18:19 +01:00
Eric Morino 1bf271a4f4 Add install PostGIS in postgresql rôle
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-26 16:16:05 +01:00