From ce2def1d125972f693db7f87173e32c5d262104d Mon Sep 17 00:00:00 2001 From: Chris Croome <chris@webarchitects.co.uk> Date: Mon, 29 Jan 2018 15:00:25 +0000 Subject: [PATCH] Updated some email fields --- roles/live2dev/tasks/main.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/roles/live2dev/tasks/main.yml b/roles/live2dev/tasks/main.yml index 712164c..57130a8 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 -- GitLab