소스 검색

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