borgbase / ansible-role-borgbackup

Ansible role to set up Borg and Borgmatic
MIT License
229 stars 102 forks source link

Playbook example Problem: #146

Closed ManfredWisniewski closed 9 months ago

ManfredWisniewski commented 9 months ago

Hi I am trying to use the playbook example from the readme and I am getting the following error. I have tried changing the variables around, adding hyphens and nothing helps. Any idea what is going on? Thanks!

TASK [borgbase.ansible_role_borgbackup : Add and run all plays] 
fatal: [cloud.com]: FAILED! => {"msg": "'list object' has no attribute 'split'"}

my example for vars:

borg_encryption_passphrase: PASSPHRASE
borg_repository:
  - "ssh://u123@u123.storagebox.com:23/./borg/cloud.com"
borg_source_directories:
  - "/var/dir"
borgmatic_hooks:
  before_backup: echo "`date` - Starting backup."
  postgresql_databases:
  - name: borgmatic
    hostname: borgmatic.localhost
    port: 5433
ManfredWisniewski commented 9 months ago

If you are having the same problem: update your python and ansible packages.