diff --git a/testsite/playbooks/roles/wsgihello/tasks/main.yml b/testsite/playbooks/roles/wsgihello/tasks/main.yml index 49a51830e2f415960999f2c20443704cfe121165..f4ae701ecaaee8070cb7c3b626d0fa9edbfb5362 100644 --- a/testsite/playbooks/roles/wsgihello/tasks/main.yml +++ b/testsite/playbooks/roles/wsgihello/tasks/main.yml @@ -1,11 +1,19 @@ --- - name: Create directroy for storing code - file: dest="/var/www/wsgi.{{ testsite_domain }}/code/" state=directory - owner="admin-wsgi_{{ testsite_domain_underscores }}" group="web-wsgi_{{ testsite_domain_underscores }}" mode=2750 + ansible.builtin.file: + dest: "/var/www/wsgi.{{ testsite_domain }}/code/" + state: directory + owner: "admin-wsgi_{{ testsite_domain_underscores }}" + group: "web-wsgi_{{ testsite_domain_underscores }}" + mode: "02750" - name: Deploy WSGI application - copy: src="hello.wsgi" dest="/var/www/wsgi.{{ testsite_domain }}/code/wsgi.py" - owner="admin-wsgi_{{ testsite_domain_underscores }}" group="web-wsgi_{{ testsite_domain_underscores }}" mode=640 + ansible.builtin.copy: + src: "hello.wsgi" + dest: "/var/www/wsgi.{{ testsite_domain }}/code/wsgi.py" + owner: "admin-wsgi_{{ testsite_domain_underscores }}" + group: "web-wsgi_{{ testsite_domain_underscores }}" + mode: "0640" notify: - Restart wsgihello