This playbook will install a LNMP environment on an Ubuntu 18.04 machine.
A virtualhost will be created with the options specified in the vars/default.yml
variable file.
mysql_root_password
: the password for the MySQL root account.http_host
: your domain name.http_conf
: the name of the configuration file that will be created within Apache.http_port
: HTTP port, default is 80.
Quick Steps:
git clone https://github.com/findsec-cn/ansible-playbooks.git
cd ansible-playbooks
nano vars/default.yml
#vars/default.yml
---
mysql_root_password: "mysql_root_password"
http_host: "your_domain"
http_conf: "your_domain.conf"
http_port: "80"
ansible-playbook -l [target] -i [inventory file] -u [remote user] playbook.yml