From da82b46d5a27fac0d2407acdf25c78aae38b1baa Mon Sep 17 00:00:00 2001 From: c4605 Date: Sat, 2 Mar 2019 23:44:03 +0800 Subject: [PATCH] Add name to include_tasks/import_tasks --- tasks/main.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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