17 lines
388 B
YAML
17 lines
388 B
YAML
|
---
|
||
|
- 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
|