<commit_before>---
- name: Stop docker engine service
  service: name=docker state=stopped
  when: '"docker0" in ansible_interfaces'
  register: docker_stoped

- name: Delete docker0 interface
  command: ip link delete docker0
  when: '"docker0" in ansible_interfaces'

- name: Enable and start docker socket
  service: name=docker.socket enabled=yes state=started

- name: Enable and restart docker
  service: name=docker enabled=yes state=restarted

- name: Fix docker 1.13.0+ forward issue
  command: "{{ item }}"
  with_items:
    - iptables -P FORWARD ACCEPT
    - iptables-save<commit_msg>Fix centos docker start fail issue<commit_after>---
- name: Stop docker engine service
  service: name=docker state=stopped
  when: '"docker0" in ansible_interfaces'
  register: docker_stoped

- name: Delete docker0 interface
  command: ip link delete docker0
  when: '"docker0" in ansible_interfaces'

- name: Enable and start docker socket
  when: docker_install_type == "source"
  service: name=docker.socket enabled=yes state=started

- name: Enable and restart docker
  service: name=docker enabled=yes state=restarted

- name: Fix docker 1.13.0+ forward issue
  command: "{{ item }}"
  with_items:
    - iptables -P FORWARD ACCEPT
    - iptables-save
{'fraction_non_alphanumeric': 0.09192645883293366, 'fraction_numerical': 0.012789768185451638, 'mean_word_length': 4.216666666666667, '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': '7295716', 'n_tokens_mistral': 420, 'n_tokens_neox': 387, 'n_words': 129}