- name: Install LAMP stack apt: name: apache2, php, libapache2-mod-php, php-mysql, mariadb-server state: present update_cache: true - name: Install Wordpress Pre-Reqs apt: name: php-curl, php-imagick, php-json, php-mbstring, php-xml, php-zip, php-gd, ghostscript, imagemagick state: present - name: Loop over sites to setup include_tasks: setup.yml loop: "{{ site_urls }}" loop_control: loop_var: site_url