diff --git a/tasks/main.yml b/tasks/main.yml index f248279..9b919fd 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,8 +1,10 @@ --- -- include_tasks: setup-RedHat.yml +- name: Include setup RedHat tasks + include_tasks: setup-RedHat.yml when: ansible_os_family == 'RedHat' -- include_tasks: setup-Debian.yml +- name: Include setup Debian tasks + include_tasks: setup-Debian.yml when: ansible_os_family == 'Debian' - name: Install Docker. @@ -12,7 +14,8 @@ notify: restart docker # TODO: Remove this shim once 18.09.1 or later is released. -- import_tasks: docker-1809-shim.yml +- name: Import systemd shim tasks + import_tasks: docker-1809-shim.yml when: ansible_service_mgr == 'systemd' - name: Ensure Docker is started and enabled at boot. @@ -24,8 +27,10 @@ - name: Ensure handlers are notified now to avoid firewall conflicts. meta: flush_handlers -- include_tasks: docker-compose.yml +- name: Include install docker compose tasks + include_tasks: docker-compose.yml when: docker_install_compose -- include_tasks: docker-users.yml +- name: Include create docker users tasks + include_tasks: docker-users.yml when: docker_users