database_openstack.yml 623 B

12345678910111213141516171819202122
  1. ---
  2. - name: apply database configuration
  3. collections:
  4. - community.mysql
  5. hosts: db_servers
  6. vars:
  7. ansible_python_interpreter: /usr/bin/python3
  8. pre_tasks:
  9. - name: install stuffs to be integrated later in salt
  10. dnf:
  11. name: ['rsync', 'libaio', 'libpmem', 'lsof']
  12. state: present
  13. when: ansible_distribution == 'Rocky'
  14. roles:
  15. - role: mariadb
  16. vars:
  17. mariadb_version: "10.5.11"
  18. #mariadb_sync: true
  19. #bootstrap_galera: true
  20. databases_users_check: true
  21. mariadb_datadir: "/storage/mysql"
  22. mariadb_socket: "/storage/mysql/mysql.sock"