<commit_before>- name: "zfs: block"
  when: zfs_enabled | bool
  block:
    - name: "zfs: create ZFS dataset for /var/db"
      zfs:
        name: "{{ boot_pool }}/var/db"
        state: present
        extra_zfs_properties:
          canmount: off

    - name: "zfs: create ZFS dataset for /jails"
      zfs:
        name: "{{ boot_pool }}/jails"
        state: present

    - name: "zfs: create ZFS dataset for /usr/local"
      zfs:
        name: "{{ boot_pool }}/usr/local"
        state: present
        extra_zfs_properties:
          canmount: off
<commit_msg>Create dataset for '/var/db/pkg' in 'zfs.inc.yml'.<commit_after>- name: "zfs: block"
  when: zfs_enabled | bool
  block:
    - name: "zfs: create ZFS dataset for /var/db"
      zfs:
        name: "{{ boot_pool }}/var/db"
        state: present
        extra_zfs_properties:
          canmount: off

    - name: "zfs: create ZFS dataset for /jails"
      zfs:
        name: "{{ boot_pool }}/jails"
        state: present

    - name: "zfs: create ZFS dataset for /usr/local"
      zfs:
        name: "{{ boot_pool }}/usr/local"
        state: present
        extra_zfs_properties:
          canmount: off

    - name: "zfs: gather facts about pkg ZFS dataset"
      tags:
        - configure
      zfs_facts:
        dataset: "{{ boot_pool }}/usr/local/pkg"
      ignore_errors: yes
      register: zfs_facts_usr_local_pkg

    - name: "zfs: save /var/db/pkg"
      tags:
        - configure
      shell: |
        set -e -u -o pipefail
        mkdir /tmp/pkg/
        mv /var/db/pkg/* /tmp/pkg/
      when: zfs_facts_usr_local_pkg is not successful

    - name: "zfs: create ZFS dataset for pkg"
      tags:
        - configure
      zfs:
        name: "{{ boot_pool }}/usr/local/pkg"
        state: present
        extra_zfs_properties:
          mountpoint: "/var/db/pkg"
      when: zfs_facts_usr_local_pkg is not successful

    - name: "zfs: restore /var/db/pkg"
      tags:
        - configure
      shell: |
        set -e -u -o pipefail
        mv /tmp/pkg/* /var/db/pkg/
        rmdir /tmp/pkg
      when: zfs_facts_usr_local_pkg is not successful

{'fraction_non_alphanumeric': 0.11487758945386065, 'fraction_numerical': 0.0, 'mean_word_length': 1.7777777777777777, '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': '4124077', 'n_tokens_mistral': 744, 'n_tokens_neox': 721, 'n_words': 196}