Giter VIP home page Giter VIP logo

ansible-mariadb-playbook's Introduction

Ansible-MariaDB-Playbook

Description

Ansible Playbook for installation and configuration of mariadb database in Amazon Linux. The Playbook consists of the following directories:

  • files
  • templates
  • defaults
  • tasks
  • handlers

files

Sample compressed bzip2 sql script. Script creates tables and loads data into the database. The sample sql script is from this website https://www.sqltutorial.org/sql-sample-database

templates

my-custom.cnf.j2 is MariaDB configuration file. Sample MariaDB option files can be found in /usr/share/mysql directory. You can copy one of the sample MariaDB option files and use it as the basis for building your server's primary MariaDB option file.

defaults

All referenced variables are in the main.yml in the defaults directory. Boolean variables are used as a form of control to turn configuration or commands ON/OFF

tasks

The files are the tasks ansible will perform:

  • config.yml: templates my-custom.cnf.j2 to the server
  • dependencies.yml: installs other dependencies required by the OS or application
  • initialize.yml: creates and configures the database
  • mariadb-install.yml: installs MariaDB
  • main.yml: root yml file calls the other tasks to perform depending on the underlying OS
  • rhel.yml: installs MariaDB in any redhat distro

handlers

service_facts is called to know the status (state: reloaded, restarted, started, stopped) of the MariaDB database

More functionalities will be added to the playbook. Feel free to make any pull requests, report issues or offer some advice and feedback

ansible-mariadb-playbook's People

Contributors

christochi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.