automation/deployer/roles/host/tasks/encrypted_drive.yml

15 lines
451 B
YAML
Raw Normal View History

2020-07-27 13:11:34 +00:00
# Untested - not sure `stdin` works to give the password.
# Not sure it's secure.
- name: "Open encrypted drive"
commane:
2020-07-27 12:39:59 +00:00
cmd: "{{ encrypted_drive.command }}"
stdin: "{{ encrypted_drive.password }}" # The drive's password
2020-07-27 13:11:34 +00:00
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