<commit_before>- name: Create docker directories which need to exist, if necessary
  file: path={{ item }} state=directory owner=root
  with_items:
    - "{{ docker_rt_root_dir }}"
  sudo: yes
  tags:
    - docker

- name: Add Docker repository key to local keychain
  apt_key: keyserver=p80.pool.sks-keyservers.net id=<KEY>
  sudo: yes
  tags:
    - packages
    - docker

- name: Add docker repository to apt sources list
  apt_repository: repo='deb https://apt.dockerproject.org/repo ubuntu-trusty main' update_cache=yes
  sudo: yes
  tags:
    - packages
    - docker

- name: Update package repo cache
  apt: update_cache=yes
  sudo: yes
  tags:
    - docker
    - packages
    - update_cache

- name: Check if docker is installed
  command: "which docker"
  register: which_docker
  failed_when: which_docker.stdout == ""
  ignore_errors: yes
  always_run: yes
  tags:
    - packages
    - docker
    - docker-install

- name: Find docker version (if installed)
  command: "docker --version"
  register: current_docker_version
  when: not which_docker.failed
  ignore_errors: yes
  tags:
    - packages
    - docker
    - docker-install

- name: Docker version found
  debug: msg="Current docker version is [{{ current_docker_version.stdout }}]"
  when: not which_docker.failed and
        current_docker_version.stdout.find("Docker version") != -1
  ignore_errors: yes
  tags:
    - packages
    - docker
    - docker-install

- name: Find docker running containers
  command: "docker ps -q"
  register: docker_containers_running
  # only if docker exists on the host and if docker needs upgrade<commit_msg>Added always_run module to tasks<commit_after>- name: Create docker directories which need to exist, if necessary
  file: path={{ item }} state=directory owner=root
  with_items:
    - "{{ docker_rt_root_dir }}"
  sudo: yes
  tags:
    - docker

- name: Add Docker repository key to local keychain
  apt_key: keyserver=p80.pool.sks-keyservers.net id=<KEY>
  sudo: yes
  tags:
    - packages
    - docker

- name: Add docker repository to apt sources list
  apt_repository: repo='deb https://apt.dockerproject.org/repo ubuntu-trusty main' update_cache=yes
  sudo: yes
  tags:
    - packages
    - docker

- name: Update package repo cache
  apt: update_cache=yes
  sudo: yes
  tags:
    - docker
    - packages
    - update_cache

- name: Check if docker is installed
  command: "which docker"
  register: which_docker
  failed_when: which_docker.stdout == ""
  ignore_errors: yes
  always_run: yes
  tags:
    - packages
    - docker
    - docker-install

- name: Find docker version (if installed)
  command: "docker --version"
  register: current_docker_version
  always_run: yes
  when: not which_docker.failed
  ignore_errors: yes
  tags:
    - packages
    - docker
    - docker-install

- name: Docker version found
  debug: msg="Current docker version is [{{ current_docker_version.stdout }}]"
  when: not which_docker.failed and
        current_docker_version.stdout.find("Docker version") != -1
  ignore_errors: yes
  tags:
    - packages
    - docker
    - docker-install

- name: Find docker running containers
  command: "docker ps -q"
  always_run: yes
  register: docker_containers_running
  # only if docker exists on the host and if docker needs upgrade
{'fraction_non_alphanumeric': 0.08711544319220225, 'fraction_numerical': 0.0018275967103259215, 'mean_word_length': 3.162230671736375, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '517945', 'n_tokens_mistral': 1083, 'n_tokens_neox': 996, 'n_words': 321}