<commit_before>- hosts: mail.hashbang.sh
  become: True
  vars_files:
    - files/certs/hashbang.sh.yml
    - files/certs/hashbang.sh.key
  tasks:
    - copy:
        content: "{{ item.value }}"
        dest: "postfix/config/certs/{{ item.key }}"
        mode: 0444

      with_dict:
        cacert.pem: "{{   ca }}"
        server.crt: "{{ cert }}"
        server.key: "{{  key }}"

      loop_control:
        label: "{{ item.key }}"

      notify: restart postfix

  handlers:
    - name: restart postfix
      service:
        name:  docker-postfix
        state: restarted<commit_msg>Manage certs for irc.hashbang.sh<commit_after>- hosts: mail.hashbang.sh
  become: True
  vars_files:
    - files/certs/hashbang.sh.yml
    - files/certs/hashbang.sh.key
  tasks:
    - copy:
        content: "{{ item.value }}"
        dest: "postfix/config/certs/{{ item.key }}"
        mode: 0444

      with_dict:
        cacert.pem: "{{   ca }}"
        server.crt: "{{ cert }}"
        server.key: "{{  key }}"

      loop_control:
        label: "{{ item.key }}"

      notify: restart postfix

  handlers:
    - name: restart postfix
      service:
        name:  docker-postfix
        state: restarted

- hosts: irc_servers
  become: False
  vars_files:
    - files/certs/hashbang.sh.yml
    - files/certs/hashbang.sh.key
  tasks:
    - copy:
        content: "{{ item.value }}"
        dest: "unrealircd/certs/{{ item.key }}"
        mode: 0400

      with_dict:
        server.crt: "{{ cert }}"
        server.key: "{{  key }}"
        server-bundle.crt: |
          {{ cert }}
          {{  ca  }}

      loop_control:
        label: "{{ item.key }}"

      notify: rehash ircd

  handlers:
    - name: rehash ircd
      command: docker exec -i ircd /unrealircd/unreal rehash
{'fraction_non_alphanumeric': 0.14205186020293123, 'fraction_numerical': 0.006764374295377677, 'mean_word_length': 1.795275590551181, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5464460', 'n_tokens_mistral': 656, 'n_tokens_neox': 633, 'n_words': 121}