create the media directory on the production server

This commit is contained in:
Andreas Zweili 2017-12-31 15:18:16 +01:00
parent 3b73c67c66
commit 29d566cf93
1 changed files with 8 additions and 0 deletions

View File

@ -34,5 +34,13 @@
- name: Run the setup script to add some final touches
shell: "/vagrant/ansible/roles/web_AI-5/tasks/setup_script.sh"
- name: Creates directory
file:
path: /srv/media
state: directory
owner: www-data
group: www-data
mode: 0755
- name: Restart apache service
service: name=apache2 state=restarted