Pro-Notes

- hosts: all become: true tasks: - name: Create maria-log-truncate script copy: content: | #!/bin/bash rm -f /var/log/mysql/*.zst find /var/log/mysql/ -type f -size +1M -exec zstd {} \; -exec ...

2025-03-11 22:59:33

подрезка логов mysql --- - hosts: all become: true tasks: - name: Create maria-log-truncate script copy: content: | #!/bin/bash rm -f /var/log/mysql/*.zst for file in /var/log/mysql/*; do ...

2025-03-11 21:19:35

пример Ansible-плейбука для установки MariaDB на CentOS 7 с настройкой безопасности. Этот плейбук включает в себя установку MariaDB, настройку пароля для root-пользователя, удаление анонимных пользователей и тестовой базы данных, а также отключение у...

2025-03-11 15:36:35

- name: Установка и настройка MariaDB на CentOS7 hosts: centos7_server become: yes tasks: - name: Загрузить необходимые пакеты yum: name: "{{ item }}" state: present with_items: - mariadb-server ...

2025-03-11 15:33:43

- hosts: your_mariadb_server become: yes tasks: - name: Установка репозитория MariaDB yum_repository: name: mariadb description: MariaDB Official Repository baseurl: http://yum.mariadb.org/10.5/centos7-amd64 ...

2025-03-11 15:32:22