mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
moodle/tasks/enable.yml & WordPress tweaks
This commit is contained in:
parent
a4d898dd9c
commit
ce2ea1990e
2 changed files with 36 additions and 18 deletions
|
@ -1,10 +1,10 @@
|
|||
# Apache
|
||||
|
||||
- name: "Enable http://box{{ wp_url }} via Apache"
|
||||
- name: Enable http://box{{ wp_url }} via Apache
|
||||
command: a2ensite wordpress.conf
|
||||
when: apache_install and wordpress_enabled
|
||||
|
||||
- name: "Disable http://box{{ wp_url }} via Apache"
|
||||
- name: Disable http://box{{ wp_url }} via Apache
|
||||
command: a2dissite wordpress.conf
|
||||
when: apache_install and not wordpress_enabled
|
||||
|
||||
|
@ -16,13 +16,13 @@
|
|||
|
||||
# NGINX
|
||||
|
||||
- name: "Enable http://box{{ wp_url }} via NGINX, by installing {{ nginx_config_dir }}/wordpress-nginx.conf from template"
|
||||
- name: Enable http://box{{ wp_url }} via NGINX, by installing {{ nginx_config_dir }}/wordpress-nginx.conf from template
|
||||
template:
|
||||
src: wordpress-nginx.conf.j2
|
||||
dest: "{{ nginx_config_dir }}/wordpress-nginx.conf"
|
||||
when: nginx_install and wordpress_enabled
|
||||
|
||||
- name: "Disable http://box{{ wp_url }} via NGINX, by removing {{ nginx_config_dir }}/wordpress-nginx.conf"
|
||||
- name: Disable http://box{{ wp_url }} via NGINX, by removing {{ nginx_config_dir }}/wordpress-nginx.conf
|
||||
file:
|
||||
path: "{{ nginx_config_dir }}/wordpress-nginx.conf"
|
||||
state: absent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue