diff options
| author | ckonstanski <ckonstanski@pippiandcarlos.com> | 2017-10-23 13:08:58 -0600 |
|---|---|---|
| committer | ckonstanski <ckonstanski@pippiandcarlos.com> | 2017-10-23 13:08:58 -0600 |
| commit | dd48453e079d5c93f7cf0af59843bd7d4180e186 (patch) | |
| tree | 10a0e449897155d87c1f2a85a92a2c2a20366471 | |
| parent | 14122982249818c23c58e7498199fb1ab48b7ef5 (diff) | |
/dev/urandom fix: different for ubuntu vs gentoo
| -rw-r--r-- | salt/openbook/ansible/files/openjdk.yaml | 10 |
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" |
