From a90476ec80754875ecf2e2fcf0e7249591c5065c Mon Sep 17 00:00:00 2001 From: fumingwei Date: Thu, 18 Nov 2021 16:38:58 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:TSG-8516:=E4=BF=AE=E6=94=B9mrapm=5Fdevic?= =?UTF-8?q?e=E5=92=8Cmrapm=5Fstream=20service=E7=94=B1requires=20mrzcpd?= =?UTF-8?q?=E5=8F=98=E4=B8=BAwants?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ansible/roles/mrzcpd/tasks/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ansible/roles/mrzcpd/tasks/main.yml b/ansible/roles/mrzcpd/tasks/main.yml index 0d221773..0a179191 100644 --- a/ansible/roles/mrzcpd/tasks/main.yml +++ b/ansible/roles/mrzcpd/tasks/main.yml @@ -34,6 +34,15 @@ - /usr/lib/systemd/system/mrtunnat.service - /usr/lib/systemd/system/mrzcpd.service +- name: "replace action: replace Requires to Wants" + replace: + path: "{{ item }}" + regexp: 'Requires' + replace: 'Wants' + with_items: + - /usr/lib/systemd/system/mrapm_device.service + - /usr/lib/systemd/system/mrapm_stream.service + - name: "Create /usr/lib/systemd/system/mrzcpd.service.d directory if it does not exist" file: path: "{{ item }}"