From 6d86bd16985aaff18915f3d394d64a1f9197f235 Mon Sep 17 00:00:00 2001 From: MrDoobPG <46342172+MrDoobPG@users.noreply.github.com> Date: Wed, 11 Sep 2019 23:28:28 +0200 Subject: [PATCH] Update main.yml --- menu/roles/docker/tasks/main.yml | 34 +++++++++++--------------------- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/menu/roles/docker/tasks/main.yml b/menu/roles/docker/tasks/main.yml index e036046f..a58c1340 100644 --- a/menu/roles/docker/tasks/main.yml +++ b/menu/roles/docker/tasks/main.yml @@ -29,6 +29,17 @@ - check.stat.exists == True - switch == "on" +- name: checking service status + command: systemctl status "{{ item }}" + with_items: + - docker + register: result + ignore_errors: yes + +- name: showing report + debug: + var: result + #########update part - name: Update APT package cache apt: update_cache=yes cache_valid_time=600 @@ -131,18 +142,6 @@ shell: systemctl disable docker when: ansible_os_family == 'Debian' -- debug: - msg: - - "Docker install on Debian fails" - - "please reboot and install again" - when: ansible_os_family == 'Debian' - -- pause: - minutes: 1 - prompt: " - READ HEAD -" - echo: no - when: ansible_os_family == 'Debian' - - name: Check docker daemon.json exists stat: path: /etc/docker/daemon.json @@ -212,17 +211,6 @@ tags: docker_standard when: switch == "on" -- name: checking service status - command: systemctl status "{{ item }}" - with_items: - - docker - register: result - ignore_errors: yes - -- name: showing report - debug: - var: result - - name: 'Start All Containers' shell: 'docker start $(docker ps -a -q)' ignore_errors: yes