automation/deployer/roles/host/tasks/encrypted_drive.yml
2020-07-27 15:11:34 +02:00

15 lines
451 B
YAML

# Untested - not sure `stdin` works to give the password.
# Not sure it's secure.
- name: "Open encrypted drive"
commane:
cmd: "{{ encrypted_drive.command }}"
stdin: "{{ encrypted_drive.password }}" # The drive's password
stdin_add_newline: yes # Ensure the stdin hits "Return"
creates: "{{ www_path }}" # Will not run if path already exists
become: true
notify:
- Restart MySQL
- Restart PostgreSQL
- Restart Docker