<commit_before>---
  - name: Remove packaged nginx
    become: true
    apt:  package="{{ item }}" state=absent purge=yes
    with_items:
     - nginx
     - nginx-common
     - nginx-extras

  - name: Install nginx-common
    become: true
    apt:
      deb: "https://nchan.io/download/nginx-common.ubuntu.deb"
      state: present

  - name: Run apt-get install -f
    become: true
    shell: apt-get -f install

  - name: Install nginx-extras
    become: true
    apt:
      deb: "https://nchan.io/download/nginx-extras.ubuntu.deb"
      state: present

  - name: Run apt-get install -f
    become: true
    shell: apt-get -f install
<commit_msg>Hold nginx packages to avoid unattended-upgrade. [ci skip]<commit_after>---
  - name: Remove packaged nginx
    become: true
    apt:  package="{{ item }}" state=absent purge=yes
    with_items:
     - nginx
     - nginx-common
     - nginx-extras

  - name: Install nginx/nchan from deb packages
    become: true
    apt:
      deb: "{{ item }}"
      state: present
      force: yes
    with_items:
      - "https://nchan.io/download/nginx-common.ubuntu.deb"
      - "https://nchan.io/download/nginx-extras.ubuntu.deb"

  - name: Run apt-get install -f
    become: true
    shell: apt-get -f install

  - name: Prevent unattended updates of nchan nginx
    become: true
    dpkg_selections:
      name: "{{ item }}"
      selection: hold
    with_items:
      - "nginx"
      - "nginx-common"
      - "nginx-extras"

{'fraction_non_alphanumeric': 0.12065439672801637, 'fraction_numerical': 0.0, 'mean_word_length': 2.156989247311828, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2220347', 'n_tokens_mistral': 532, 'n_tokens_neox': 499, 'n_words': 128}