From 878f307a05fe53a8b5e8995ed1119921bfc7b63f Mon Sep 17 00:00:00 2001 From: dingjiahuichina Date: Fri, 13 Jun 2025 15:51:46 +0800 Subject: [PATCH] =?UTF-8?q?opt:=20mindspore=E9=83=A8=E7=BD=B2=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E6=80=A7=E8=83=BD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oedp/build/oedp.spec | 3 ++- plugins/mindspore-deepseek/workspace/install.yml | 4 ++++ .../workspace/roles/prepare/tasks/main.yml | 15 ++++++++++----- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/oedp/build/oedp.spec b/oedp/build/oedp.spec index 2772d6e..6742bf3 100644 --- a/oedp/build/oedp.spec +++ b/oedp/build/oedp.spec @@ -8,7 +8,8 @@ Source0: %{name}-%{version}.tar.gz BuildArch: noarch -Requires: python3, ansible, python3-prettytable, python3-netaddr, python3-packaging, tar +Requires: python3, ansible, tar, rsync +Requires: python3-prettytable, python3-netaddr, python3-packaging %description openEuler deploy tool diff --git a/plugins/mindspore-deepseek/workspace/install.yml b/plugins/mindspore-deepseek/workspace/install.yml index 2d1fec9..038ed17 100644 --- a/plugins/mindspore-deepseek/workspace/install.yml +++ b/plugins/mindspore-deepseek/workspace/install.yml @@ -4,21 +4,25 @@ roles: - prepare any_errors_fatal: true + gather_facts: false - hosts: - masters roles: - start/ray-master any_errors_fatal: true + gather_facts: false - hosts: - workers roles: - start/ray-worker any_errors_fatal: true + gather_facts: false - hosts: - masters roles: - start/deepseek any_errors_fatal: true + gather_facts: false diff --git a/plugins/mindspore-deepseek/workspace/roles/prepare/tasks/main.yml b/plugins/mindspore-deepseek/workspace/roles/prepare/tasks/main.yml index f89b573..9917504 100644 --- a/plugins/mindspore-deepseek/workspace/roles/prepare/tasks/main.yml +++ b/plugins/mindspore-deepseek/workspace/roles/prepare/tasks/main.yml @@ -17,17 +17,22 @@ name: python3-libselinux state: present -- name: Copy prepare.sh to hosts - copy: +- name: install rsync + yum: + name: rsync + state: present + +- name: Sync prepare.sh to hosts using rsync + synchronize: src: prepare.sh dest: "{{ dir_path }}" - mode: '0755' + rsync_opts: "--chmod=755" - name: Copy lib to hosts - copy: + synchronize: src: lib dest: "{{ dir_path }}" - mode: '0644' + rsync_opts: "--chmod=644" - name: Copy config.cfg to hosts template: -- Gitee