diff --git a/roles/live2dev/tasks/main.yml b/roles/live2dev/tasks/main.yml index 712164ce9fbc6720ff7eddd56db68697c8b4d499..57130a89c6a3b29a0a89e3e6abfcce4d0967a74f 100644 --- a/roles/live2dev/tasks/main.yml +++ b/roles/live2dev/tasks/main.yml @@ -76,11 +76,22 @@ - name: Dev database overwritten with live data shell: "cat /home/cotech/private/cotech.sql | mysql cotechdev" -- name: All records in the wp_es_emaillist table deleted on dev +- name: Email Subscribers records in the wp_es_emaillist table deleted on dev shell: "wp db query 'DELETE FROM wp_es_emaillist' --allow-root" args: chdir: /home/cotechdev/sites/web +- name: Email Subscribers ig_es_adminemail updated + shell: "wp option update ig_es_adminemail 'contact@coops.tech' --allow-root" + args: + chdir: /home/cotechdev/sites/web + +- name: Email Subscribers ig_es_fromemail updated + shell: "wp option update ig_es_fromemail '{{ item }}@{{ hostname }}' --allow-root" + args: + chdir: /home/cotechdev/sites/web + with_items: "{{ users }}" + - name: Dev uploads directory in place file: path: /home/cotechdev/sites/web/app/uploads