Nov. 25th, 2024

amarao: (Default)
- 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

Profile

amarao: (Default)
amarao

April 2026

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

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Apr. 12th, 2026 01:49 pm
Powered by Dreamwidth Studios