diff --git a/testsite/playbooks/roles/phpinfo/tasks/main.yml b/testsite/playbooks/roles/phpinfo/tasks/main.yml index 44bd5fbefc08cd1c645f79ba10fb9b35b3a3212f..14b6cf249acef87919ac9572ed1e6f7c626ae17c 100644 --- a/testsite/playbooks/roles/phpinfo/tasks/main.yml +++ b/testsite/playbooks/roles/phpinfo/tasks/main.yml @@ -1,9 +1,9 @@ --- - 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 + file: dest="/var/www/phpinfo.{{ testsite_domain }}/htdocs/" state=directory + owner="admin" group="web-phpinfo_{{ testsite_domain_underscores }}" 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 + copy: src="index.php" dest="/var/www/phpinfo.{{ testsite_domain }}/htdocs/index.php" + owner="admin" group="web-phpinfo_{{ testsite_domain_underscores }}" mode=640