Skip to content

Commit 22be72c

Browse files
committed
provide lnet config
1 parent 6d5da54 commit 22be72c

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

ansible/roles/lustre/tasks/configure.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@
1616
that: _lustre_interface is defined
1717
fail_msg: "No interface was found for lustre_subnet_cidr={{ lustre_subnet_cidr }}"
1818

19-
# - name: Write LNet configuration file
20-
# template:
21-
# src: lnet.conf.j2
22-
# dest: /etc/lnet.conf # exists from package install, expected by lnet service
23-
# owner: root
24-
# group: root
25-
# mode: u=rw,go=r # from package install
26-
# register: _lnet_conf
19+
- name: Write LNet configuration file
20+
template:
21+
src: lnet.conf.j2
22+
dest: /etc/lnet.conf # exists from package install, expected by lnet service
23+
owner: root
24+
group: root
25+
mode: u=rw,go=r # from package install
26+
register: _lnet_conf
2727

28-
# - name: Ensure lnet service state
29-
# systemd_service:
30-
# name: lnet
31-
# state: "'restarted' if _lnet_conf.changed else 'started'"
32-
# when: _lnet_conf.changed
28+
- name: Ensure lnet service state
29+
systemd:
30+
name: lnet
31+
state: "{{ 'restarted' if _lnet_conf.changed else 'started' }}"
32+
when: _lnet_conf.changed
3333

3434
- name: Ensure mount points exist
3535
ansible.builtin.file:

0 commit comments

Comments
 (0)