使用ansible的playbook实现自动化安装httpd
实战-使用Playbook批量部署多台LAMP环境本机安装LNMP环境[root@jumpserver ~]#yum install httpd mariadb-server mariadb php php-mysql[root@jumpserver ~]#mkdir -p /mydata/data[root@jumpserver ~]#chown -R mysql.mysql /mydata/data[root@jumpserver ~]#vim /etc/my.cnfdatadir=/myd