summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-01-05 11:28:14 +0000
committerNick White <git@njw.name>2019-01-05 11:28:14 +0000
commit7e6b0368875866817e26b8233b3c83b1d2d1d9ef (patch)
tree1ca60beab574fe363ebb405a4bcb9f8f322a825c
parentceead484886b1050404483aebc20967b70b66b5c (diff)
Add /usr/local/lib to ld.so search path
-rw-r--r--roles/tesseractor/tasks/ldlocal.yml11
-rw-r--r--roles/tesseractor/tasks/main.yml1
-rw-r--r--roles/tesstrainer/tasks/ldlocal.yml11
-rw-r--r--roles/tesstrainer/tasks/main.yml1
4 files changed, 24 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
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