---

# Tasks file for docker
- name: Load the OS specific varibles
  include_vars: "{{ role_path }}/vars/{{ ansible_os_family | lower }}.yml"

- name: Load the distribution specific varibles
  include_vars: "{{ role_path }}/vars/{{ ansible_distribution | lower }}.yml"
  when: >
    '{{ ansible_os_family | lower }}' != '{{ ansible_distribution | lower }}'

- name: Load user specific varibles
  include_vars: "{{ docker_custom_repository_vars_file | trim }}"
  when:
    - docker_custom_repository_vars_file != False

- include: install_debian_family.yml
  tags:
    - install
    - docker
  when: ansible_os_family == "Debian"

- name: Manage docker configuration
  include: configure.yml
  tags:
    - configure
    - docker

- name: Service management
  become: True
  service:
    name: "{{ docker_service_name }}"
    enabled: "{{ docker_service_enabled }}"
    state: "{{ docker_service_state }}"


---

# Tasks file for docker
- name: Load the distribution specific varibles
  include_vars: "{{ role_path }}/vars/{{ ansible_distribution | lower }}.yml"
  tags:
    - install
    - docker

- name: Load user specific varibles
  include_vars: "{{ docker_custom_repository_vars_file | trim }}"
  when:
    - docker_custom_repository_vars_file != False
  tags:
    - install
    - docker

- include: install_debian_family.yml
  tags:
    - install
    - docker
  when: ansible_os_family == "Debian"

- name: Manage docker configuration
  include: configure.yml
  tags:
    - configure
    - docker

- name: Service management
  become: True
  service:
    name: "{{ docker_service_name }}"
    enabled: "{{ docker_service_enabled }}"
    state: "{{ docker_service_state }}"
  tags:
    - install
    - docker


Remove style not compatible with ansible devel
Remove style not compatible with ansible devel
