add become for init

This commit is contained in:
Luc Stroobant 2018-01-28 20:33:29 +01:00
parent 34d4ce1721
commit 09103099d7
1 changed files with 1 additions and 0 deletions

View File

@ -95,6 +95,7 @@
- name: client | create backup-directory on backup server
shell: /usr/local/bin/borg-backup init
become_user: "{{ borgbackup_client_user }}"
register: backup_init
changed_when: "'Remember your passphrase' in backup_init.stderr"