multiple configurations not possible
Closed this issue · 3 comments
Type of Report
BUG
Actual behaviour
Configuration of multiple rsnapshot tasks not works.
The role should be created to run the multi.yml if 'wtd_rsnapshot_config_multi' is set to true. But if the variable is set to true the multi.yml got skipped furthermore.
Expected behaviour
Configuration of multiple rsnapshot tasks works.
Resolving skipping issue if 'wtd_rsnapshot_config_multi' is set to true.
Could you explain this a little bit more?
@daniel-wtd I have update the issue a bit.
Additional to this issue, i will also add more information into the README.md and also cleanup some not needed code.
If you have further questions, go on and ask :)
As discussed via chat yesterday:
The idea is to have multiple rsnapshot instances/configurations managed via systemd-timers.
As we should use the systemd-timer anyways, I suggest to have something like a dictionary for configurations. No additional trigger would be needed.
- wtd_rsnapshot_configs:
- name: my_first_config
x: foo
y: bar
z: baz
- name: my_second_config
x: alice
y: bob
z: peter
Now you loop over the dictionary and could use the same task-list/template per iteration.