Commit Graph

37 Commits

Author SHA1 Message Date
Jérémy Lecour ee21973371 Use FQCN
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> Details
gitea/ansible-roles/pipeline/head This commit looks good Details
Fully Qualified Collection Name
2023-03-20 23:33:19 +01:00
Jérémy Lecour cbe7985814 Enforce String notation for mode 2022-06-08 15:38:21 +02:00
Jérémy Lecour dd2072b86b minifirewall: fix failed_when conditions on restart
continuous-integration/drone/push Build is passing Details
2022-05-10 16:40:45 +02:00
Jérémy Lecour b8c5ac3097 remove whitespace for stream redirection 2021-06-28 15:56:19 +02:00
Jérémy Lecour 02451f1e67 add default (useless) value for file lookup
continuous-integration/drone/push Build is passing Details
2021-05-19 14:35: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 e7ddf9d46c Use 'loop' syntax instead of 'with_list' 2021-05-04 14:31:22 +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 debc4a82ca Use 'loop' syntax instead of 'with_first_found'
continuous-integration/drone/push Build is passing Details
2021-05-04 13:39:47 +02:00
Patrick Marchand c9daa8ba35 evobackup-client: Fix ssh connection test in zzz_evobackup.sh
continuous-integration/drone/push Build is passing Details
When I made the ssh key name a variable and defaulted it to id_ed25519,
I forgot to change the hardcoded value for the ssh test in
evobackup-client/templates/zzz_evobackup.default.sh.j2
2020-06-08 17:22:18 -04:00
Patrick Marchand 72736751ea in evobackup_client, made rsync ssh key use the actual variable
continuous-integration/drone/push Build is passing Details
2020-04-24 11:09:47 -04:00
Patrick Marchand ebecda38b6 Fixed evobackup-client not updating the ssh key in the jail
continuous-integration/drone/push Build is passing Details
I have no idea how this got past testing, but apparently, the task
did not even exist..
2020-04-24 10:46:10 -04:00
Patrick Marchand 53ae27b250 evobackup-client now uses the default ed25519 key of the server
continuous-integration/drone/push Build is passing Details
We used to prefer creating a specific one for backups, but everybody
kept thinking the wrong key was being used and "fixing" it. The
advantages of having a specific key for backups did not outweigh
the challenge of creating a culture change.
2020-04-24 10:36:36 -04:00
Patrick Marchand 7173fc06ea Quote a variable in zz_evobackup.default.sh.j2
continuous-integration/drone/push Build is passing Details
This allows us to remove the shellcheck ignore warning comment and puts it in line with upstream. Apparently, the file can only contain one PID, so it's okay to quote the variable.
2020-04-20 18:16:39 +02:00
Patrick Marchand daa97a2314 revert last change to zzz_evobackup, it broke
continuous-integration/drone/push Build is passing Details
2020-04-20 11:30:55 -04:00
Patrick Marchand 556b6a6f89 added litteral blocks to zzz_evobackup template
continuous-integration/drone/push Build is passing Details
This makes sure that nothing inside the script is parsed by jinja
unless we want it.
2020-04-20 11:27:51 -04:00
Patrick Marchand 04e1b96833 Fix the test_server() function in zzz_evobackup.default.sh.j2
continuous-integration/drone/push Build is passing Details
The script was using the wrong ssh key to test the connection, thus reporting a failed connection even if the rest was okay.
2020-03-26 11:18:55 -04:00
Patrick Marchand d9517e8033 Update evobackup_client zzz_evobackup script
continuous-integration/drone/push Build is passing Details
Use latest evobackup master and adds new evobackup_client__servers_fallback
variable.
2020-03-23 10:52:20 -04:00
Patrick Marchand 9d7b4dd52d hotfix jail updated task in evobackup-client
continuous-integration/drone/push Build is passing Details
Found out I wasnt using the right syntax for chaining commands, will fix later.
2020-03-19 15:51:32 -04:00
Patrick Marchand a18076e878 Added handling of bkctld sync to evobackup-client
continuous-integration/drone/push Build is failing Details
2020-03-11 09:10:01 -04:00
Patrick Marchand af61b7f97d Temp fix for regression introduced by bkctld 2.x
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is failing Details
The erroneous error codes returned by bkctld will make playbooks
fail even though the commands run succesfully.
See evolix/evobackup#31
2020-01-16 12:18:51 +01:00
Patrick Marchand 0b4095d8dd bkctld restart works better than bkctld start
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is failing Details
a simple start will fail if the jail is already started, there is potential for a race condition.
2019-12-19 10:30:58 -05:00
Patrick Marchand 5178e99e7c typo in evobackup jail file task name
continuous-integration/drone/pr Build encountered an error Details
continuous-integration/drone/push Build is passing Details
2019-10-10 15:40:00 -04:00
Patrick Marchand 5a20292ec9 rename create_jail.yml to jail.yml in evobackup-client
continuous-integration/drone/push Build encountered an error Details
continuous-integration/drone/pr Build encountered an error Details
2019-10-07 13:53:55 -04:00
Patrick Marchand d4742b411d Added evobackup sync when more than one host 2019-10-07 13:53:10 -04:00
Patrick Marchand daad12fdeb Handle backup jail creation
continuous-integration/drone/push Build encountered an error Details
continuous-integration/drone/pr Build encountered an error Details
Does not handle sync step yet
2019-10-07 12:28:25 -04:00
Patrick Marchand 4851af7432 Fix minifirewall restart handler 2019-10-03 10:44:21 -04:00
Patrick Marchand 87202fa264 fixed typo in evobackup-cilent
Not sure how this slipped in
2019-09-23 15:26:30 -04:00
Patrick Marchand b36202f8d1 minifirewall was not restarted by evobackup-client after mods. 2019-09-06 17:53:48 -04:00
Patrick Marchand 11e006201a Revert to default zzz_evobackup from git
The suggested default is better, following peer review. Though some
changes will probably need to be made once we decide how to handle
system only backups.
2019-09-06 17:52:14 -04:00
Patrick Marchand d226ce594a Changed variables to all lower snake case for evobackup-client
Not just esthetic, for some reason ansible refused to run with '-'
somewhere and I just could not find where, changing variables and
tags to use '_' fixed it. It's more consistent anyway.
2019-09-06 17:49:40 -04:00
Patrick Marchand f9b55c0c91 Got rid of forgotten attempt at mapping hosts in evobackup-client 2019-09-03 12:13:05 -04:00
Patrick Marchand 71bf970811 Fix extra space in zzz_evobackup template
Not the best solution, a mix of map, format, join would of been
better, but I could not find out how to make it work with multiple
attributes.
2019-09-03 11:14:48 -04:00
Patrick Marchand 0f7d9e9f24 Allow heterogeneous ports
This makes it a bit more annoying to define default hosts for
multiple machines, but it's not that bad and it's better than not
being able to define heterogeous ports.
2019-09-03 10:29:05 -04:00
Patrick Marchand c773c901f2 Fix to evobackup-client variable names
Somehow, an extra _ managed to slide itself in a few places.
2019-09-03 09:51:46 -04:00
Patrick Marchand 7d6a552c09 Apply README fixes from peer review
Removes unecessary precision.
2019-09-03 09:50:13 -04:00
Patrick Marchand 1c12827c9c Added evobackup-client role
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build encountered an error Details
2019-08-30 14:43:52 -04:00