[Cleanup] webapps
Probably the most dangerous part of the cleanup, replace call to the shell module that don't seems to make use of shell features with the command module.
This commit is contained in:
parent
6fb78be66c
commit
208d7d603c
|
@ -15,7 +15,7 @@
|
|||
tags:
|
||||
- evoadmin-mail
|
||||
|
||||
- name: Active evoadminmail VHost
|
||||
- name: Active evoadminmail VHost
|
||||
file:
|
||||
src: "/etc/nginx/sites-available/evoadminmail.conf"
|
||||
dest: "/etc/nginx/sites-enabled/evoadminmail.conf"
|
||||
|
|
|
@ -116,7 +116,7 @@
|
|||
src: "/etc/nginx/sites-available/roundcube.conf"
|
||||
dest: "/etc/nginx/sites-enabled/roundcube.conf"
|
||||
state: link
|
||||
when: roundcube_webserver == "nginx"
|
||||
when: roundcube_webserver == "nginx"
|
||||
notify: reload nginx
|
||||
|
||||
- name: enable roundcube link in default site index
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
mode: "0750"
|
||||
|
||||
- name: Download Wordpress
|
||||
shell: '{{ wordpress_wpcli }} core download --locale=fr_FR --version={{ wordpress_version }}'
|
||||
command: '{{ wordpress_wpcli }} core download --locale=fr_FR --version={{ wordpress_version }}'
|
||||
args:
|
||||
creates: "{{ ansible_env.HOME }}/www/index.php"
|
||||
|
||||
|
@ -42,12 +42,12 @@
|
|||
delegate_to: localhost
|
||||
|
||||
- name: Configure Wordpress (wp-config.php)
|
||||
shell: '{{ wordpress_wpcli }} core config --dbhost={{ db_host }} --dbuser={{ db_user }} --dbpass={{ db_pwd }} --dbname={{ db_name }}'
|
||||
command: '{{ wordpress_wpcli }} core config --dbhost={{ db_host }} --dbuser={{ db_user }} --dbpass={{ db_pwd }} --dbname={{ db_name }}'
|
||||
args:
|
||||
creates: "{{ ansible_env.HOME }}/www/wp-config.php"
|
||||
|
||||
- name: Configure site
|
||||
shell: '{{ wordpress_wpcli }} core install --url={{ wordpress_host | quote }} --title={{ wordpress_title | quote }} --admin_user=admin --admin_password="{{ admin_pwd | quote }}" --admin_email={{ wordpress_email }} --skip-email'
|
||||
command: '{{ wordpress_wpcli }} core install --url={{ wordpress_host | quote }} --title={{ wordpress_title | quote }} --admin_user=admin --admin_password="{{ admin_pwd | quote }}" --admin_email={{ wordpress_email }} --skip-email'
|
||||
changed_when: false
|
||||
|
||||
- name: Check if Wordpress is up to date
|
||||
|
@ -58,7 +58,7 @@
|
|||
changed_when: check_version.rc
|
||||
|
||||
- name: Update Wordpress
|
||||
shell: '{{ wordpress_wpcli }} core update --version={{ wordpress_version }}'
|
||||
command: '{{ wordpress_wpcli }} core update --version={{ wordpress_version }}'
|
||||
args:
|
||||
removes: "{{ ansible_env.HOME }}/www/index.php"
|
||||
when: check_version.rc
|
||||
|
|
Loading…
Reference in New Issue