ansible-wordpress-host-init/roles/install-wordpress/main.yml

17 lines
388 B
YAML
Raw Normal View History

2023-03-27 16:24:16 +00:00
---
- 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