]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
fix rgw containerized deployment 852/head
authorHuamin Chen <hchen@redhat.com>
Fri, 17 Jun 2016 16:59:53 +0000 (16:59 +0000)
committerHuamin Chen <hchen@redhat.com>
Fri, 17 Jun 2016 16:59:53 +0000 (16:59 +0000)
Signed-off-by: Huamin Chen <hchen@redhat.com>
roles/ceph-rgw/tasks/docker/start_docker_rgw.yml

index dffa83e36d2758b54f8cc6dd0b24e694757a926a..4527702671992d25c48f01e04931be84b13aa0f4 100644 (file)
@@ -8,34 +8,26 @@
     owner: "root"
     group: "root"
     mode: "0644"
-  when:
-    is_atomic or
-    ansible_os_family == 'CoreOS'
+  when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'
 
 - name: link systemd unit file for rgw instance
   file:
     src: /var/lib/ceph/ceph-rgw@.service
     dest: /etc/systemd/system/multi-user.target.wants/ceph-rgw@{{ ansible_hostname }}.service
     state: link
-  when:
-    is_atomic or
-    ansible_os_family == 'CoreOS'
+  when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'
 
 - name: enable systemd unit file for rgw instance
   shell: systemctl enable /etc/systemd/system/multi-user.target.wants/ceph-rgw@{{ ansible_hostname }}.service
   failed_when: false
   changed_when: false
-  when:
-    is_atomic or
-    ansible_os_family == 'CoreOS'
+  when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'
 
 - name: reload systemd unit files
   shell: systemctl daemon-reload
   changed_when: false
   failed_when: false
-  when:
-    is_atomic or
-    ansible_os_family == 'CoreOS'
+  when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'
 
 - name: systemd start rgw container
   service:
@@ -43,9 +35,7 @@
     state: started
     enabled: yes
   changed_when: false
-  when:
-    is_atomic or
-    ansible_os_family == 'CoreOS'
+  when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'
 
 - name: run the rados gateway docker image
   docker:
@@ -56,6 +46,4 @@
     state: running
     env: "CEPH_DAEMON=RGW,{{ ceph_rgw_docker_extra_env }}"
     volumes: "/var/lib/ceph:/var/lib/ceph,/etc/ceph:/etc/ceph"
-  when:
-    not is_atomic and
-    ansible_os_family != 'CoreOS'
+  when: ansible_os_family != 'RedHat' and ansible_os_family != 'CoreOS'