Commit ba697a7d authored by okhin's avatar okhin 🚴

Let's be indempotent

parent 1d51f21b
......@@ -20,7 +20,6 @@
state: present
password: "{{ wordpress_dbpass }}"
priv: "{{ wordpress_dbname }}.*:ALL/*.*:USAGE"
append_privs: true
- block:
# We want to always check that, in order to test other commands
......@@ -51,9 +50,13 @@
- name: mise à jour de wordpress
command: "php {{ wordpress_wpcli_path }} core update --path={{ wordpress_path }}"
register: wordpress_update
changed_when: wordpress_update.rc >= 1
- name: mise à jour de la BDD de wordpress
command: "php {{ wordpress_wpcli_path }} core update-db --network --path={{ wordpress_path }}"
register: wordpress_dbupdate
changed_when: wordpress_dbupdate.rc >= 1
become: yes
become_user: "{{ wordpress_unix_user }}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment