- Centos 7
- Install Nginx, create virtual host (domain name must be specified in ansible extra vars).
- Install PHP, and other php packages such as php-fpm.
- Install mysql (percona-release)
git clone https://github.com/intens1ty/ansible.lemp
cd ansible.lemp
- roles/nginx/vars/main.yml
- roles/php/vars/main.yml
- roles/mysql/vars/main.yml
Default values:
- php version - 7.4
- php packages - php, php-cli, php-common, php-fpm, php-mysqlnd
- mysql version - 5.7
- inventory/hosts.ini
ansible-playbook -i inventory/hosts.ini -l my_host --extra-var "domain_name=example.local" playbook.yml