summaryrefslogtreecommitdiff
path: root/roles/tesseractor
diff options
context:
space:
mode:
Diffstat (limited to 'roles/tesseractor')
-rw-r--r--roles/tesseractor/tasks/ldlocal.yml11
-rw-r--r--roles/tesseractor/tasks/main.yml1
2 files changed, 12 insertions, 0 deletions
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