--- - name: Create directory for hosting the application ansible.builtin.file: dest: "/var/www/phpinfo.{{ testsite_domain }}/htdocs/" state: directory owner: "admin-phpinfo_{{ testsite_domain_underscores }}" group: "web-phpinfo_{{ testsite_domain_underscores }}" mode: "02750" - name: Deploy the index.php ansible.builtin.copy: src: "index.php" dest: "/var/www/phpinfo.{{ testsite_domain }}/htdocs/index.php" owner: "admin-phpinfo_{{ testsite_domain_underscores }}" group: "web-phpinfo_{{ testsite_domain_underscores }}" mode: "0640"