diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2018-12-09 18:25:21 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2018-12-09 20:25:40 +0100 |
commit | 730200a00bb5e300efc35a493f11ec7462d2008f (patch) | |
tree | 89a474e3a8669d09076bd9c7449b2dbd4a78a75f /roles/bacula-dir/tasks/main.yml | |
parent | bd9901c2e4eadda7d8a3f150c04859e12a26adb1 (diff) |
bacula: Backup MySQL database for the nextcloud host.
Diffstat (limited to 'roles/bacula-dir/tasks/main.yml')
-rw-r--r-- | roles/bacula-dir/tasks/main.yml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/roles/bacula-dir/tasks/main.yml b/roles/bacula-dir/tasks/main.yml index 723aa22..2f7ab25 100644 --- a/roles/bacula-dir/tasks/main.yml +++ b/roles/bacula-dir/tasks/main.yml @@ -1,25 +1,26 @@ - name: Install bacula-director apt: pkg={{ packages }} vars: packages: - bacula-console + - bacula-director - bacula-director-mysql - name: Create a 'bacula' SQL user mysql_user2: name=bacula password= auth_plugin=unix_socket state=present notify: - Restart bacula-director # Create with: # echo bconsole $(pwgen -sn 64 1) | sudo tee -a /etc/bacula/passwords-dir # echo $sd-sd $(pwgen -sn 64 1) | sudo tee -a /etc/bacula/passwords-dir # echo $fd-fd $(pwgen -sn 64 1) | sudo tee -a /etc/bacula/passwords-dir # # then add the password for each FD / SD: # echo $director-dir $password | sudo tee /etc/bacula/passwords-sd # echo $director-dir $password | sudo tee /etc/bacula/passwords-fd - name: Ensure /etc/bacula/passwords-dir exists file: path=/etc/bacula/passwords-dir state=file owner=bacula group=bacula |