|
8 | 8 | - name: create rdma hostfile |
9 | 9 | template: |
10 | 10 | src: templates/hostfile_rdma.j2 |
11 | | - dest: /tmp/hostfile.rdma.{{ cluster_name }} |
| 11 | + dest: /etc/opt/oci-hpc/hostfile.rdma.{{ cluster_name }} |
12 | 12 | mode: '0644' |
13 | 13 | owner: "{{ ansible_user }}" |
14 | 14 | group: "{{ ansible_user }}" |
|
20 | 20 | - name: create tcp hostfile |
21 | 21 | template: |
22 | 22 | src: templates/hostfile_tcp.j2 |
23 | | - dest: /tmp/hostfile.tcp.{{ cluster_name }} |
| 23 | + dest: /etc/opt/oci-hpc/hostfile.tcp.{{ cluster_name }} |
24 | 24 | mode: '0644' |
25 | 25 | owner: "{{ ansible_user }}" |
26 | 26 | group: "{{ ansible_user }}" |
|
30 | 30 |
|
31 | 31 | - name: Copy to all hosts |
32 | 32 | copy: |
33 | | - src: /tmp/hostfile.rdma.{{ cluster_name }} |
| 33 | + src: /etc/opt/oci-hpc/hostfile.rdma.{{ cluster_name }} |
34 | 34 | dest: /etc/opt/oci-hpc/hostfile.rdma |
35 | 35 | when: cluster_network|bool |
36 | 36 |
|
37 | 37 | - name: Copy to all hosts |
38 | 38 | copy: |
39 | | - src: /tmp/hostfile.tcp.{{ cluster_name }} |
| 39 | + src: /etc/opt/oci-hpc/hostfile.tcp.{{ cluster_name }} |
40 | 40 | dest: /etc/opt/oci-hpc/hostfile.tcp |
41 | 41 |
|
42 | 42 | - name: Create a symbolic link |
|
63 | 63 | - "hostfile.tcp" |
64 | 64 | when: not cluster_network|bool |
65 | 65 |
|
66 | | -- name: delete /tmp/hostfile.tcp |
67 | | - file: |
68 | | - path: /tmp/hostfile.tcp.{{ cluster_name }} |
69 | | - state: absent |
70 | | - |
71 | | -- name: delete /tmp/hostfile.rdma |
72 | | - file: |
73 | | - path: /tmp/hostfile.rdma.{{ cluster_name }} |
74 | | - state: absent |
75 | | - when: cluster_network|bool |
76 | | - |
77 | 66 |
|
0 commit comments