summaryrefslogtreecommitdiff
path: root/salt/openbook/ansible/files/openjdk.yaml
diff options
context:
space:
mode:
authorckonstanski <ckonstanski@pippiandcarlos.com>2017-10-23 13:08:58 -0600
committerckonstanski <ckonstanski@pippiandcarlos.com>2017-10-23 13:08:58 -0600
commitdd48453e079d5c93f7cf0af59843bd7d4180e186 (patch)
tree10a0e449897155d87c1f2a85a92a2c2a20366471 /salt/openbook/ansible/files/openjdk.yaml
parent14122982249818c23c58e7498199fb1ab48b7ef5 (diff)
/dev/urandom fix: different for ubuntu vs gentoo
Diffstat (limited to 'salt/openbook/ansible/files/openjdk.yaml')
-rw-r--r--salt/openbook/ansible/files/openjdk.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/salt/openbook/ansible/files/openjdk.yaml b/salt/openbook/ansible/files/openjdk.yaml
index a36a9e3..00c7d90 100644
--- a/salt/openbook/ansible/files/openjdk.yaml
+++ b/salt/openbook/ansible/files/openjdk.yaml
@@ -47,3 +47,13 @@
line: "{{ item.line }}"
with_items:
- { regexp: '^securerandom.source=file:/dev/random.*$', line: "securerandom.source=file:/dev/urandom" }
+ when: ansible_distribution == "Ubuntu"
+
+ - name: "/dev/urandom fix"
+ lineinfile:
+ dest: "/etc/java-config-2/current-system-vm/jre/lib/security/java.security"
+ regexp: "{{ item.regexp }}"
+ line: "{{ item.line }}"
+ with_items:
+ - { regexp: '^securerandom.source=file:/dev/random.*$', line: "securerandom.source=file:/dev/urandom" }
+ when: ansible_distribution == "Gentoo"