<commit_before>---
- hosts: all
  vars:
    ssl_certificates_create:
      - name: foo.bar.org
        CN: foo.bar.org
      - name: bar.foo.org
        CN: bar.foo.org
    java_keystore_certificates:
      - name: foo.bar.org
        crt: /etc/ssl/certs/foo.bar.org.crt
      - name: bar.foo.org
        crt: /etc/ssl/certs/bar.foo.org.crt
    java_keystore_file: /tmp/cacerts
    java_keystore_pass: <PASSWORD>
  roles:
    - { role: ssl-certificates }
    - { role: ansible-java }
  tasks:
    - name: Test with custom keystore
      tags:
        - java
        - keystore
      with_items: java_keystore_certificates
      keystore:
        state=present
        name={{ java_keystore_file }}
        alias={{ item.name }}
        crt={{ item.crt }}
        password={{ <PASSWORD> }}
        owner=0
        group=0
        mode=0640
        create=true
        keytool=/opt/java/oracle/jdk1.8.0_31/bin/keytool
<commit_msg>Fix ssl-certificates role name for keystore test playbook<commit_after>---
- hosts: all
  vars:
    ssl_certificates_create:
      - name: foo.bar.org
        CN: foo.bar.org
      - name: bar.foo.org
        CN: bar.foo.org
    java_keystore_certificates:
      - name: foo.bar.org
        crt: /etc/ssl/certs/foo.bar.org.crt
      - name: bar.foo.org
        crt: /etc/ssl/certs/bar.foo.org.crt
    java_keystore_file: /tmp/cacerts
    java_keystore_pass: <PASSWORD>
  roles:
    - { role: ansible-ssl-certificates }
    - { role: ansible-java }
  tasks:
    - name: Test with custom keystore
      tags:
        - java
        - keystore
      with_items: java_keystore_certificates
      keystore:
        state=present
        name={{ java_keystore_file }}
        alias={{ item.name }}
        crt={{ item.crt }}
        password={{ <PASSWORD>_keystore_pass }}
        owner=0
        group=0
        mode=0640
        create=true
        keytool=/opt/java/oracle/jdk1.8.0_31/bin/keytool

{'fraction_non_alphanumeric': 0.11758584807492195, 'fraction_numerical': 0.011446409989594173, 'mean_word_length': 1.8531157270029674, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '613219', 'n_tokens_mistral': 709, 'n_tokens_neox': 686, 'n_words': 121}