LogNotes

подрезка логов 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

- name: Установка и настройка MariaDB hosts: centos_servers tasks: - name: Установка необходимых пакетов yum: name: "{{ item }}" state: latest with_items: - mariadb - mariadb-server - ...

2025-03-11 15:31:51