diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2018-12-03 03:21:42 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2018-12-03 03:43:42 +0100 |
commit | cfedc9e785831d54195b120300932f74f9808daf (patch) | |
tree | 3f906311a6d2a7340b9d9012f23c07c95e8015b2 /roles/bacula-dir/tasks/main.yml | |
parent | f01876604da167b36780e53ce54cd89c8f9d5f85 (diff) |
Upgrade syntax to Ansible 2.7 (apt module).
Diffstat (limited to 'roles/bacula-dir/tasks/main.yml')
-rw-r--r-- | roles/bacula-dir/tasks/main.yml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/roles/bacula-dir/tasks/main.yml b/roles/bacula-dir/tasks/main.yml index 4cacc6e..723aa22 100644 --- a/roles/bacula-dir/tasks/main.yml +++ b/roles/bacula-dir/tasks/main.yml @@ -1,23 +1,24 @@ - name: Install bacula-director - apt: pkg={{ item }} - with_items: + apt: pkg={{ packages }} + vars: + packages: - bacula-console - 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 |