Commit graph

71 commits

Author SHA1 Message Date
William Hirigoyen c861fe1974 etc-git: add /var/chroot-bind/etc/bind to Git safe directories to avoid owner check by Git (bind owns the repo, not root)
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2655|8|2647|4|:-1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/417//ansiblelint">Evolix » ansible-roles » unstable #417</a>
gitea/ansible-roles/pipeline/head This commit looks good
2023-11-30 17:41:25 +01:00
William Hirigoyen 9867dcb319 Retrait debug
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2651|6|2645|8|:+1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/416//ansiblelint">Evolix » ansible-roles » unstable #416</a>
gitea/ansible-roles/pipeline/head This commit looks good
2023-11-30 17:25:14 +01:00
William Hirigoyen fba894cad9 etc-git: create /var/chroot-bind/etc/bind GIT repo also in jessie
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2654|8|2646|7|:-1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/410//ansiblelint">Evolix » ansible-roles » unstable #410</a>
gitea/ansible-roles/pipeline/head This commit looks good
2023-11-29 10:49:07 +01:00
William Hirigoyen 1a74bef0bc check stat.exists before stat.isdir
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2653|7|2646|4|:-1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/409//ansiblelint">Evolix » ansible-roles » unstable #409</a>
gitea/ansible-roles/pipeline/head This commit looks good
2023-11-29 10:13:43 +01:00
William Hirigoyen 83e61b25a5 etc-git: add /var/chroot-bind/etc/bind repo 2023-11-29 09:59:57 +01:00
Jérémy Lecour 4476c4b633
etc-git: include → import_tasks
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2595|4|2591|7|:+1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/294//ansiblelint">Evolix » ansible-roles » unstable #294</a>
gitea/ansible-roles/pipeline/head This commit looks good
2023-07-12 09:40:25 +02:00
Jérémy Lecour 00fe225a3c
force: [yes,no] → force [true,false]
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2615|7|2608|177|:+1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/278//ansiblelint">Evolix » ansible-roles » unstable #278</a>
gitea/ansible-roles/pipeline/head This commit looks good
2023-06-28 13:25:30 +02:00
Jérémy Lecour ee21973371 Use FQCN
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2777|524|2253|2462|:+1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/223//ansiblelint">Evolix » ansible-roles » unstable #223</a>
gitea/ansible-roles/pipeline/head This commit looks good
Fully Qualified Collection Name
2023-03-20 23:33:19 +01:00
David Prevot dbef71d791 Drop trailing whitespaces
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
2023-01-06 09:54:51 +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
Patrick Marchand 1c6fdbf85a Remove warning ignores as they are depreciated
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
Will cause a hard fail in ansible 2.14, so better get rid of them now.
There is no alternative, but the ansible warnings for those modules
are not hard failures anyways.
2022-12-22 11:32:32 -05: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
Mathieu Trossevin 5dc6a1d36b
etc-git: Commit changes to /etc in containers
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/pr Build was killed
2022-03-30 16:33:00 +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 520cba9c5b etc-git: evocommit has an Ansible mode to report changes 2021-10-12 11:15:33 +02:00
Jérémy Lecour 3e80c98a05 etc-git: evocommit should be present 2021-10-08 15:46:45 +02:00
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 22145a29b2 whitespaces 2021-06-23 22:38:24 +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 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
All checks were successful
continuous-integration/drone/push Build is passing
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
All checks were successful
continuous-integration/drone/push Build is passing
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+
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
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
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