<commit_before>- name: Add Nginx Key.
  apt_key: url=http://nginx.org/keys/nginx_signing.key state=present

- name: Add repository - Debian.
  lineinfile: "dest=/etc/apt/sources.list.d/edgium.{{app}}.list line='deb http://nginx.org/packages/debian/ {{ ansible_distribution_release }} nginx'"
  lineinfile: "dest=/etc/apt/sources.list.d/edgium.{{app}}.list line='deb-src http://nginx.org/packages/debian/ {{ ansible_distribution_release }} nginx'"
  when: ansible_distribution == 'Debian'

- name: Add repository - Ubuntu.
  lineinfile: "dest=/etc/apt/sources.list.d/edgium.{{app}}.list line='deb http://nginx.org/packages/ubuntu/ {{ ansible_distribution_release }} nginx'"
  lineinfile: "dest=/etc/apt/sources.list.d/edgium.{{app}}.list line='deb-src http://nginx.org/packages/ubuntu/ {{ ansible_distribution_release }} nginx'"
  when: ansible_distribution == 'Ubuntu'

- name: Update.
  command: apt-get update

- name: Install Nginx.
  command: apt-get install -y nginx --force-yes

- name: Start Nginx.
  sudo: true 
  command: service nginx start

- shell: nginx -v
  register: version

- debug: msg="{{version.stdout}}"<commit_msg>Nginx updated<commit_after>- vars:
  list_path: /etc/apt/sources.list.d/edgium.{{app}}.list
- name: Add Nginx Key.
  apt_key: url=http://nginx.org/keys/nginx_signing.key state=present

- name: Create list file
  file: path={{list_path}}

- name: Add repository - Debian.
  lineinfile: "dest={{list_path}} line='deb http://nginx.org/packages/debian/ {{ ansible_distribution_release }} nginx'"
  lineinfile: "dest={{list_path}} line='deb-src http://nginx.org/packages/debian/ {{ ansible_distribution_release }} nginx'"
  when: ansible_distribution == 'Debian'

- name: Add repository - Ubuntu.
  lineinfile: "dest={{list_path}} line='deb http://nginx.org/packages/ubuntu/ {{ ansible_distribution_release }} nginx'"
  lineinfile: "dest={{list_path}} line='deb-src http://nginx.org/packages/ubuntu/ {{ ansible_distribution_release }} nginx'"
  when: ansible_distribution == 'Ubuntu'

- name: Update.
  command: apt-get update

- name: Install Nginx.
  command: apt-get install -y nginx --force-yes

- name: Start Nginx.
  sudo: true 
  command: service nginx start

- shell: nginx -v
  register: version

- debug: msg="{{version.stdout}}"
{'fraction_non_alphanumeric': 0.16255506607929515, 'fraction_numerical': 0.0, 'mean_word_length': 4.356132075471698, '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': '941409', 'n_tokens_mistral': 852, 'n_tokens_neox': 767, 'n_words': 161}