--- - name: Create directory for hosting the application file: dest="/var/www/phpinfo.example.com/htdocs/" state=directory owner="admin" group="web-phpinfo_example_com" mode=2750 - name: Deploy the index.php copy: src="index.php" dest="/var/www/phpinfo.example.com/htdocs/index.php" owner="admin" group="web-phpinfo_example_com" mode=640