Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Sep 11, 2019
1 parent 5673d21 commit 6d86bd1
Showing 1 changed file with 11 additions and 23 deletions.
34 changes: 11 additions & 23 deletions menu/roles/docker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6d86bd1

Please sign in to comment.