automation/deployer/roles/host/tasks/encrypted_drive.yml
2020-07-27 14:39:13 +02:00

12 lines
323 B
YAML

- name: "Open encrypted drive"
commane:
cmd: "/sbin/mount_vault"
stdin: "{{ encrypted_drive.password }}" # The drive's password
creates: "{{ www_path }}" # Will not run if path already exists
stdin_add_newline: yes
become: true
notify:
- Restart MySQL
- Restart PostgreSQL
- Restart Docker