Wordpress download / Vhost config

This commit is contained in:
David Petric
2023-03-27 18:24:16 +02:00
parent 2d6606c0a4
commit 009993e3a0
6 changed files with 69 additions and 5 deletions

View File

@ -0,0 +1,17 @@
---
- 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