Jérémy Lecour
a6fe0397a6
etc-git: back to 2 tasks for each commit
...
"test X && git commit" generates a failure and a lot of noise.
2021-10-05 14:31:53 +02:00
Jérémy Lecour
86e5df9c16
etc-git: simplify commit tasks
2021-10-05 07:48:37 +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
73efee9caa
etc-git: purge old .git/index.lock (default: True)
2021-09-23 14:45:24 +02:00
Jérémy Lecour
b8c5ac3097
remove whitespace for stream redirection
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
Jérémy Lecour
22145a29b2
whitespaces
2021-06-23 22:38:24 +02:00
Jérémy Lecour
4d83f25ae6
fix pipefail option for shell invocations
2021-05-18 14:04:54 +02:00
Jérémy Lecour
e65340cb56
Add pipefail option to shell invocations
2021-05-13 15:34:27 +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
5138065059
Use 'loop' syntax instead of 'with_items'
2021-05-04 14:19:18 +02:00
Ludovic Poujol
0f8804a8ab
etc-git: commit in /usr/share/scripts when there's an active repository
2021-04-08 16:07:49 +02:00
Jérémy Lecour
7283e34077
Replace version_compare() with version()
2020-02-25 10:45:35 +01:00
Jérémy Lecour
e7952dc3c8
etc-git: fix warnings ansible-lint
2020-01-08 17:19:36 +01:00
Jérémy Lecour
eded11f88f
Change "|search" with "is search"
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
Victor LABORIE
6f5e13f8b8
Add evolix prefix to include_role
2019-11-29 14:00:25 +01:00
Jérémy Lecour
049d36ab8f
etc-git: add versioning for /usr/share/scripts on Debian 10+
...
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)
2019-10-21 15:26:03 +02:00
Jérémy Lecour
8cb604aa93
etc-git: gitignore /etc/letsencrypt/.certbot.lock
2019-06-17 15:02:17 +02:00
Jérémy Lecour
aa28e9c1b8
change repositories URL
2019-03-21 15:31:58 +01:00
Jérémy Lecour
70f5504382
etc-git: ignore evobackup/.keep-* files
2019-02-22 10:25:27 +01:00
Jérémy Lecour
d900a70faf
etc-git: status cron job is run by root
2018-09-10 10:04:21 +02: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
Romain Dessort
b92d697db1
Make commit tasks work on squeeze
...
On squeeze machines, the task fetching the user.email variable fails and
therefore git_config_user_email.config_value ansible variable is
undefined in the next task. I added a condition to handle this case.
2018-03-15 11:23:38 -04:00
Romain Dessort
236b65f54a
Exclude postfix/spamd.cidr from git
...
This commit refer to evoqa #2748 .
2018-03-15 11:23:38 -04:00
Jérémy Lecour
f9c06f3e47
etc-git: add postfix db files in default gitignore
2018-02-04 16:42:10 +01:00
Jérémy Lecour
9f9894344d
etc-git: scope=local is not always supported
...
git version 1.7.2.5 (Debian 7) doesn't have "--local" scope
2017-09-29 12:01:06 +02:00
Gregory Colpart
b5b46e707c
Quick fix to avoid failure when you are in root without su/sudo
2017-09-29 01:42:38 +02:00
Jérémy Lecour
3207d837cb
etc-git: better commit author composition
2017-09-15 16:03:49 +02:00
Daniel Jakots
03f4eaf269
fix example
2017-08-29 11:22:21 -04: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
Gregory Colpart
b02e49073a
don't crash when use in root (no SUDO_USER)
2017-08-29 00:01:26 +02:00
Romain Dessort
48b4238a88
Make git commit task not to fail if user.email is undefined
2017-08-14 17:07:58 -04: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
6871de457a
etc_git: fix README to use tasks_from instead of task_from
2017-07-27 16:51:35 -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
d033d9773a
etc-git: if sudo is used, the real user is the author
2017-07-27 16:49:14 -04:00
Gabriel Periard-Tremblay
87ebadcadd
Kitchen: Change base image to evolix/ansible
2017-06-02 08:38:08 -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
08ee315148
etc-git: add a task to commit
...
It can be invoked in pre/post tasks or anywhere in anther role.
2017-04-25 10:10:17 +02:00
Jérémy Lecour
0d5dd26b17
etc-git: fix specs with correct /etc directory
2017-04-21 11:23:30 +02:00