main.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. ---
  2. restic_install: false
  3. restic_version: 0.11.0
  4. restic_path: /usr/local/bin/restic
  5. restic_user: root
  6. restic_user_home: /root
  7. restic_default_folders: []
  8. restic_folders: []
  9. restic_databases: []
  10. restic_dump_compression_enabled: false
  11. restic_forget: true
  12. restic_keep_last: false
  13. restic_keep_hourly: false
  14. restic_keep_daily: 4
  15. restic_keep_weekly: 2
  16. restic_keep_monthly: 3
  17. restic_keep_yearly: 1
  18. restic_keep_within: false
  19. restic_prune: true
  20. restic_check: true
  21. restic_ssh_enabled: true
  22. restic_systemd_timer_on_calender: '*-*-* 03:00:00'
  23. restic_systemd_timer_randomized_delay_sec: 60*60*3
  24. restic_ssh_host: backup
  25. restic_ssh_private_key_path: '/root/.ssh/backup'
  26. restic_password: "{{lookup('community.general.passwordstore', '{{passwordstore_path}}/restic/{{ansible_hostname}}_pwd create=True nosymbols=true')}}"
  27. restic_repository_name: "{{ansible_hostname | default('restic') }}"
  28. restic_ssh_private_key: "{{lookup('community.general.passwordstore', '{{passwordstore_path}}/restic/ssh_private returnall=true')}}"
  29. restic_ssh_hostname: "{{lookup('community.general.passwordstore', '{{passwordstore_path}}/restic/ssh_hostname')}}"
  30. restic_ssh_host_fingerprint: "{{lookup('community.general.passwordstore', '{{passwordstore_path}}/restic/ssh_host_fingerprint')}}"
  31. restic_ssh_user: "{{lookup('community.general.passwordstore', '{{passwordstore_path}}/restic/ssh_user')}}"
  32. restic_ssh_port: "{{lookup('community.general.passwordstore', '{{passwordstore_path}}/restic/ssh_port') | default(22)}}"