--- - block: - name: Install the wordpress php prerequisites apt: name={{ item }} state=present cache_valid_time=1800 with_items: '{{ wordpress_php_prereq }}' - name: Get the wordpress CLI tool get_url: url={{ wordpress_cli_url }} dest={{ wordpress_cli_bin }} mode=0755 - name: Create the wordpress document root file: dest={{ wordpress_doc_root }} state=directory owner={{ item.user }} group={{ item.group }} with_items: '{{ phpfpm_pools }}' tags: wordpress