Adapt zrpcd to work for Carbon/Nitrogen
[apex.git] / lib / ansible / playbooks / post_deploy_overcloud.yml
index 5640e90..af1c648 100644 (file)
       when:
         - sfc
         - "'controller' in ansible_hostname"
-    - name: Ensure ZRPCD is up
-      systemd:
-        name: zrpcd
-        state: started
-        enabled: yes
-      become: yes
+    - name: Ensure ZRPCD is running
+      shell: ps aux | grep zrpcd | grep -v grep
+      ignore_errors: yes
+      changed_when: false
+      register: zrpcd_status
+      failed_when: zrpcd_status.rc == 0
       when:
         - vpn
         - "'controller-0' in ansible_hostname"