Ansible implement automatic installation of MARIADB on multiple servers

Source: Internet
Author: User

#!/bin/bash#ansible command ' ansible all-m user-a ' name=mysql home=/home/app/dbdata group=mysql ' ' ansible all-m group-a ' na Me=mysql gid=306 system=yes ' #ansible all-m copy-a ' src=/home/mariadb-10.2.8-linux-x86_64.tar.gz dest=/home/' Ansible all-m unarchive-a ' src=/home/mariadb-10.2.8-linux-x86_64.tar.gz dest=/usr/local copy=yes ' ' ansible all-m file -A ' path=/uar/local/mysql src=/usr/local/mariadb-10.2.8-linux-x86_64/state=link ' ' ansible all-m file-a ' path=/etc/ MySQL state=directory ' ansible all-m copy-a ' src=/usr/local/mysql/support-files/my-huge.cnf dest=/etc/mysql/my.cnf "' Ansible all-m lineinfile-a ' dest=/etc/mysql/my.cnf line=" datair =/home/app/dbdata\ninnodb_file_per_table = on\ Nskip_name_resolve =on "" ' Ansible all-m shell-a './scripts/mysql_install_db--datadir=/home/app/dbdata--user=mysql chdir=/usr/local/mysql/' ansible all-m file-a ' path=/var/log/mariadb state=directory ' ansible all-m file-a ' name=/v Ar/log/mariadb/mariadb.log Owner=mysql group=mysql StatE=touch ' ansible all-m copy-a ' src=/usr/local/mysql/support-files/mysql.server dest=/etc/init.d/mysqld ' ansible All-m shell-a ' chkconfig--add mysqld '

Ansible implement MARIADB automatic installation on multiple servers

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.