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

August 2025

S M T W T F S
     12
345 6789
10111213141516
17181920212223
24252627282930
31      

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 30th, 2025 12:59 am
Powered by Dreamwidth Studios