File tree 1 file changed +5
-17
lines changed
1 file changed +5
-17
lines changed Original file line number Diff line number Diff line change 58
58
command : systemctl daemon-reload # noqa: command-instead-of-module no-changed-when no-handler
59
59
when : _slurm_systemd_units.changed
60
60
61
- - name : Find user binaries
62
- find :
63
- paths : " {{ openhpc_bin_dir }}"
64
- register : _ohpc_binaries
65
-
66
- - name : Symlink slurm user binaries into $PATH
67
- file :
68
- src : " {{ item.path }}"
69
- state : link
70
- dest : " {{ ('/usr/bin', item.path | basename) | path_join }}"
71
- owner : root
72
- group : root
73
- mode : u=rwx,go=rx
74
- force : true # files may already exist
75
- loop : " {{ _ohpc_binaries.files }}"
76
- loop_control :
77
- label : " {{ item.path }}"
61
+ - name : Prepend $PATH with slurm user binary location
62
+ lineinfile :
63
+ path : /etc/profile.d/slurm.sh # NB: /etc/environment not used on EL!
64
+ regexp : ^export PATH={{ openhpc_bin_dir | regex_escape }}:$PATH
65
+ line : export PATH={{ openhpc_bin_dir }}:$PATH
You can’t perform that action at this time.
0 commit comments