Hi everybody, 

I'm deploying Adobe CQ projects with Ansible, everything works fine except 
the restart at the end of the deployment. 

The excerpt of the my playbook: 

  - name: Stop of CQ instance 
    command: sudo /etc/init.d/cq stop

  - name: make sure CQ is stopped
    service: name=cq state=stopped        (The Stop works fine, it checks 
the state and jumps to the next Task) 


    
  - name: Start of CQ instance  
    command: sudo /etc/init.d/cq start     ( The instance starts well but 
the playbook stops here and ignores the further tasks )


  
I think it is because it doesn't get any Return Code.. 
Is there a possibility to jump to the next task without any Return Code / 
Output? 
Afterwards I would check if the port 4503 is available and go on cleaning 
the dispatcher cache and deleting the precompiled jsps as my last tasks. 

  - name: CQ Port Monitoring
    wait_for: port=4503 delay=300

  - name: Clean Dispatcher Cache 
    shell: rm -rf /opt/daycq/dispatcher/cache/publish*/* 

  - name: Delete precompiled jsps 
    command: curl -X DELETE 
http://localhost:4503/var/classes/org/apache/jsp/apps/ -u 
{{username}}:{{password}}


Thank you in advance

Best regards,
Julián Jamardo

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2196ddea-d006-4209-a4e6-91067a92408f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to