diff --git a/testsite/playbooks/roles/phpinfo/tasks/main.yml b/testsite/playbooks/roles/phpinfo/tasks/main.yml index 7359bbaeda4520e4aff0b1d518a5fefa6fe3aca8..dfe0aebfd9afb592617a3d70bfa0c3a27f294fd2 100644 --- a/testsite/playbooks/roles/phpinfo/tasks/main.yml +++ b/testsite/playbooks/roles/phpinfo/tasks/main.yml @@ -1,9 +1,17 @@ --- - name: Create directory for hosting the application - file: dest="/var/www/phpinfo.{{ testsite_domain }}/htdocs/" state=directory - owner="admin-phpinfo_{{ testsite_domain_underscores }}" group="web-phpinfo_{{ testsite_domain_underscores }}" mode=2750 + 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 - 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=640 + 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"