From dd48453e079d5c93f7cf0af59843bd7d4180e186 Mon Sep 17 00:00:00 2001 From: ckonstanski Date: Mon, 23 Oct 2017 13:08:58 -0600 Subject: /dev/urandom fix: different for ubuntu vs gentoo --- salt/openbook/ansible/files/openjdk.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'salt') 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" -- cgit v1.3