2020-07-27 12:39:13 +00:00
|
|
|
|
2020-07-27 13:11:34 +00:00
|
|
|
# Untested - not sure `stdin` works to give the password.
|
|
|
|
# Not sure it's secure.
|
2020-07-27 12:39:13 +00:00
|
|
|
- name: "Open encrypted drive"
|
|
|
|
commane:
|
2020-07-27 12:39:59 +00:00
|
|
|
cmd: "{{ encrypted_drive.command }}"
|
2020-07-27 12:39:13 +00:00
|
|
|
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"
|
2020-07-27 12:39:13 +00:00
|
|
|
creates: "{{ www_path }}" # Will not run if path already exists
|
|
|
|
become: true
|
|
|
|
notify:
|
|
|
|
- Restart MySQL
|
|
|
|
- Restart PostgreSQL
|
|
|
|
- Restart Docker
|