amarao: (Default)
[personal profile] amarao
- name: Restore database
  no_log: true
  ansible.builtin.shell:
    cmd:
      set -o pipefail
      cat backup.sql |
      /usr/bin/docker exec -i -e MYSQL_PWD app_db mysql -u root app_db
    executable: /bin/bash
  environment:
    MYSQL_PWD: "{{ app_sql_root_password }}"

Полный текст на medim

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

amarao: (Default)
amarao

April 2026

S M T W T F S
   1234
567 891011
12131415161718
19202122232425
2627282930  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Apr. 14th, 2026 02:46 am
Powered by Dreamwidth Studios