<commit_before>---
- name: mount /proc
  become: 'yes'
  mount:
    name: /proc
    src: none
    fstype: proc
    opts: rw,nosuid,nodev,noexec,relatime,hidepid=2
    state: present
  tags:
    - mount
    - proc

- name: stat /dev/shm
  stat:
    path: /dev/shm
  register: dev_shm
  tags:
    - mount
    - shm

- name: mount /dev/shm with noexec
  become: 'yes'
  mount:
    name: /dev/shm
    src: none
    fstype: tmpfs
    opts: rw,nosuid,nodev,noexec
    state: present
  when: dev_shm.stat.exists
  tags:
    - mount
    - shm

- name: create tmp.mount 
  become: 'yes'
  template:
    src: etc/systemd/tmp.mount.j2
    dest: /etc/systemd/system/tmp.mount
    backup: 'yes'
    mode: 0644
    owner: root
    group: root
  tags:
    - systemd
    - tmp

- name: stat tmp.mount
  stat:
    path: /etc/systemd/system/tmp.mount
  register: tmp_mount
  tags:
    - mount
    - tmp

- name: unmask tmp.mount
  become: 'yes'
  systemd:
    name: tmp.mount<commit_msg>Lint trailing space<commit_after>---
- name: mount /proc
  become: 'yes'
  mount:
    name: /proc
    src: none
    fstype: proc
    opts: rw,nosuid,nodev,noexec,relatime,hidepid=2
    state: present
  tags:
    - mount
    - proc

- name: stat /dev/shm
  stat:
    path: /dev/shm
  register: dev_shm
  tags:
    - mount
    - shm

- name: mount /dev/shm with noexec
  become: 'yes'
  mount:
    name: /dev/shm
    src: none
    fstype: tmpfs
    opts: rw,nosuid,nodev,noexec
    state: present
  when: dev_shm.stat.exists
  tags:
    - mount
    - shm

- name: create tmp.mount
  become: 'yes'
  template:
    src: etc/systemd/tmp.mount.j2
    dest: /etc/systemd/system/tmp.mount
    backup: 'yes'
    mode: 0644
    owner: root
    group: root
  tags:
    - systemd
    - tmp

- name: stat tmp.mount
  stat:
    path: /etc/systemd/system/tmp.mount
  register: tmp_mount
  tags:
    - mount
    - tmp

- name: unmask tmp.mount
  become: 'yes'
  systemd:
    name: tmp.mount
{'fraction_non_alphanumeric': 0.11734431291816778, 'fraction_numerical': 0.006176016469377252, 'mean_word_length': 2.0662460567823344, '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': '1017430', 'n_tokens_mistral': 781, 'n_tokens_neox': 781, 'n_words': 189}