diff --git a/oedp/build/oedp.spec b/oedp/build/oedp.spec index 2772d6ef22b895d1067dad81ef1b14064af3799f..6742bf3501fbddd88d81e07baa5826d7b28ba089 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 2d1fec9dd0c5dce2be21f7af9ea6b6b91acd7821..038ed17865f0846516ef78e8d6dc8d9618335724 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 f89b57331184ce54708970e716dd099ba17e3e77..99175046d58d8a5ef70a1da9f0d8ca3ae1d5215b 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: