Commit graph

39 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 1728eaee68 Revert "Add “when: not ansible_check_mode” to allow more --check"
All checks were successful
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
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
2022-12-02 17:40:43 +01:00
Jérémy Lecour 805a8ecb3a etc-git: use "ansible-commit" to efficiently commit all available repositories (including /etc inside LXC) from Ansible 2022-04-27 14:22:59 +02:00
Ludovic Poujol 5a2dc5cbd1 etc-git: Make it work on non-debian systems 2022-03-15 10:53:16 +01:00
Jérémy Lecour 6a4b250b5d etc-git: better output detection 2021-10-12 18:23:50 +02:00
Jérémy Lecour 7b14296503 etc-git: optimize maintenance tasks
* manage commits with an optimized shell script instead of many slow Ansible tasks
* centralize cron jobs in dedicated crontab
2021-10-02 12:50:01 +02:00
Jérémy Lecour b8c5ac3097 remove whitespace for stream redirection 2021-06-28 15:56:19 +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 7283e34077 Replace version_compare() with version() 2020-02-25 10:45:35 +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 049d36ab8f etc-git: add versioning for /usr/share/scripts on Debian 10+
All checks were successful
continuous-integration/drone/push Build is passing
The repository.yml task file is generic and can be called for vrious 
repositories.
On Debian 10, /usr/share/scripts is versioned
2019-11-05 17:00:22 +01:00
Jérémy Lecour 24edbd680a Add crontabs only when cron package is installed (many roles)
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-21 15:26:03 +02:00
Jérémy Lecour 8cb604aa93 etc-git: gitignore /etc/letsencrypt/.certbot.lock
All checks were successful
continuous-integration/drone/push Build is passing
2019-06-17 15:02:17 +02:00
Jérémy Lecour 70f5504382 etc-git: ignore evobackup/.keep-* files 2019-02-22 10:25:27 +01:00
Jérémy Lecour 46a9b4f43e etc-git: remove cron file if needed 2018-09-08 01:05:58 +02:00
Jérémy Lecour d5984fae76 etc-git: use a dedicated cron file for etc-git-status 2018-09-08 00:53:09 +02:00
Jérémy Lecour 825352ca0a etc-git: fix quotes 2018-09-08 00:36:43 +02:00
Jérémy Lecour 92f14a496f etc-git: conditional for cron job 2018-09-08 00:27:03 +02:00
Jérémy Lecour 37c4898eed etc-git: cron jobs to monitor uncommited changes 2018-09-07 21:53:13 +02:00
Jérémy Lecour d138c00db8 etc-git: some entries of .gitignore are mandatory 2018-08-24 14:44:51 +02:00
Jérémy Lecour 3e3c6437e8 etc-git: install a script to optimize the repository each month 2018-08-24 00:28:15 +02:00
Jérémy Lecour 98486fd771 etc-git: add tags for Ansible 2018-03-16 14:21:01 +01:00
Gregory Colpart 4a81d12d03 Delete OpenBSD stuff (mv to another repo), ansible-roles is now Linux-specific (even Debian-specific) 2017-08-29 03:09:57 +02:00
Jérémy Lecour 66eee11cf7 etc-git: show OS in task name 2017-07-27 21:33:34 -04:00
Jérémy Lecour f20b95f075 etc-git: use the git_config module instead of ini 2017-07-27 16:50:23 -04:00
Jérémy Lecour e2452cdf6c Don't warn for some known commands 2017-05-19 22:30:51 +02:00
Jérémy Lecour 69d499043e etc-git: more tests 2017-04-19 17:55:45 +02:00
Jérémy Lecour 5b2ab0d8d3 Ansible >= 2.2 supported 2017-03-24 14:15:09 +01:00
Jérémy Lecour 294cea44e8 Change mode with leading 0, but still as String 2017-03-23 16:59:43 +01:00
Victor LABORIE 139165ee58 etc-git: don't specify group (OpenBSD compatibility) 2017-03-02 11:28:12 +01:00
Tristan PILAT 90c7074a8f Make git role suitable for OpenBSD 2017-02-27 14:04:20 +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 5a4f838375 Unix mode MUST be a quoted string when using octal notation 2017-01-05 12:03:54 +01:00
Jérémy Lecour 35f423a869 etc-git: set user.email with sensible hostname 2017-01-03 09:20:39 +01:00
Jérémy Lecour 2ee354cea3 etc-git: secure /etc/.git 2016-12-26 12:11:46 +01:00
Jérémy Lecour bac9649a97 etc-git: invert conditions
If the "git init" command has not been executed, the variable is not defined.
2016-12-21 16:12:31 +01:00
Jérémy Lecour c0ab8f99ce Squash: conventions, evolinux, etc-git… 2016-12-21 16:12:30 +01:00