From 7e6b0368875866817e26b8233b3c83b1d2d1d9ef Mon Sep 17 00:00:00 2001 From: Nick White Date: Sat, 5 Jan 2019 11:28:14 +0000 Subject: Add /usr/local/lib to ld.so search path --- roles/tesstrainer/tasks/ldlocal.yml | 11 +++++++++++ roles/tesstrainer/tasks/main.yml | 1 + 2 files changed, 12 insertions(+) create mode 100644 roles/tesstrainer/tasks/ldlocal.yml (limited to 'roles/tesstrainer/tasks') diff --git a/roles/tesstrainer/tasks/ldlocal.yml b/roles/tesstrainer/tasks/ldlocal.yml new file mode 100644 index 0000000..e817d85 --- /dev/null +++ b/roles/tesstrainer/tasks/ldlocal.yml @@ -0,0 +1,11 @@ +--- +# Sets ld.so to search /usr/local/lib for libraries + +- name: Add local path to ld.so.conf search path + lineinfile: + dest: /etc/ld.so.conf.d/locallib.conf + create: true + line: /usr/local/lib + +- name: Update ld.so cache + command: /sbin/ldconfig diff --git a/roles/tesstrainer/tasks/main.yml b/roles/tesstrainer/tasks/main.yml index be4289f..e1245fd 100644 --- a/roles/tesstrainer/tasks/main.yml +++ b/roles/tesstrainer/tasks/main.yml @@ -1,2 +1,3 @@ --- - include: tesstraining.yml +- include: ldlocal.yml -- cgit v1.2.1-24-ge1ad