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/tesseractor/tasks/ldlocal.yml | 11 +++++++++++ roles/tesseractor/tasks/main.yml | 1 + 2 files changed, 12 insertions(+) create mode 100644 roles/tesseractor/tasks/ldlocal.yml (limited to 'roles/tesseractor') diff --git a/roles/tesseractor/tasks/ldlocal.yml b/roles/tesseractor/tasks/ldlocal.yml new file mode 100644 index 0000000..e817d85 --- /dev/null +++ b/roles/tesseractor/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/tesseractor/tasks/main.yml b/roles/tesseractor/tasks/main.yml index 48f791f..33d6a30 100644 --- a/roles/tesseractor/tasks/main.yml +++ b/roles/tesseractor/tasks/main.yml @@ -1,2 +1,3 @@ --- - include: tesseract.yml +- include: ldlocal.yml -- cgit v1.2.1-24-ge1ad