add language update for site and admin user in deploy_db 0.2
authorymh <ymh.work@gmail.com>
Fri, 14 Jun 2019 16:48:55 +0200
changeset 20 36bdc6e0deb1
parent 19 85cc15f99376
child 21 9d8d1b5088e7
add language update for site and admin user in deploy_db
deploy/deploy_db.yml
--- a/deploy/deploy_db.yml	Fri Jun 14 16:20:26 2019 +0200
+++ b/deploy/deploy_db.yml	Fri Jun 14 16:48:55 2019 +0200
@@ -73,6 +73,17 @@
       args:
         chdir: "{{remote_path}}"
 
+    - name: Set site in french
+      command:
+        argv:
+          - "{{remote_path}}/vendor/bin/wp"
+          - site
+          - switch-language
+          - fr_FR
+      args:
+        chdir: "{{remote_path}}"
+
+
     - name: update admin password
       command:
         argv:
@@ -85,6 +96,18 @@
       args:
         chdir: "{{remote_path}}"
 
+    - name: update admin language
+      command:
+        argv:
+          - "{{remote_path}}/vendor/bin/wp"
+          - user
+          - update
+          - "{{rc_admin_user_id}}"
+          - "--locale=en_US"
+          - --skip-email
+      args:
+        chdir: "{{remote_path}}"
+
     - name: flush cache
       command:
         argv: