You need minimum 1GB RAM for succesfully run playbook.
Software version.
Ansible 2.0.0.2
Centos 6/7
Ubuntu 16.04 LTS
php 7.0/7.1/7.2/7.3
nginx 1.10
mysql Ver 14.14 Distrib 5.7.25
run command:
yum install git ansible mc python2-PyMySQL -y
or
apt update && apt install git ansible mc -y mkdir /etc/ansible/roles
for Debian like distros
git clone https://github.com/Nurlan199206/ansible-lemp-16-04
and
ansible-playbook --connection=local -s /etc/ansible/roles/ansible-lemp-16-04/nginx.yml
for successfully run playbook, dont forget add in /etc/ansible/ansible.cfg after [defaults]
invalid_task_attribute_failed=False