Docker installation

This commit is contained in:
David Petric
2023-03-27 18:38:19 +02:00
parent 009993e3a0
commit 04f275eb6e
4 changed files with 42 additions and 4 deletions

View File

@ -0,0 +1,24 @@
---
- name: Download latest WP
get_url:
url: https://wordpress.org/latest.zip
dest: /var/www/{{ vhost_name }}
mode: '0660'
- name: Extract wordpress
unarchive:
src: /var/www/{{ vhost_name }}/latest.zip
dest: /var/www/{{ vhost_name }}
remote_src: yes
- name: Delete the wordpress zip
file:
state: absent
path: /var/www/{{ vhost_name }}/latest.zip
- name: Setup permissions
file:
path: /var/www/{{ vhost_name }}
owner: www-data
group: www-data
mode: '0644'