浏览代码

Docker storage fix (#812)

* Added task to stop docker before templating config

* Rearranged storage roles in rhv install
Chandler Wilkerson 7 年之前
父节点
当前提交
8d14089a84
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      roles/docker-storage-setup/tasks/main.yaml

+ 3 - 2
roles/docker-storage-setup/tasks/main.yaml

@@ -1,4 +1,7 @@
 ---
+- name: stop docker
+  service: name=docker state=stopped
+
 - block:
     - name: create the docker-storage config file
       template:
@@ -7,7 +10,6 @@
         owner: root
         group: root
         mode: 0644
-
   when:
     - ansible_distribution_version | version_compare('7.4', '>=')
     - ansible_distribution == "RedHat"
@@ -20,7 +22,6 @@
         owner: root
         group: root
         mode: 0644
-
   when:
     - ansible_distribution_version | version_compare('7.4', '<')
     - ansible_distribution == "RedHat"