[ 
https://issues.apache.org/jira/browse/AIRAVATA-2673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16359009#comment-16359009
 ] 

Marcus Christie commented on AIRAVATA-2673:
-------------------------------------------

Maybe use extra vars: https://serverfault.com/a/675076 to add a "force restart" 
task to each of the Airavata service roles. Something like

{noformat}
- name: Force restart of zookeeper
  command: /bin/true
  when: force_restart | bool
  notify:
    - restart zookeeper
{noformat}

Then run something like:
{noformat}
ansible-playbook --vault-password-file=vault-password.txt -i 
inventories/scigap/develop/ -e "force_restart=true" airavata.yml
{noformat}

However, another thing one might want is to only do a restart. In that case a 
tag would be needed as well. Perhaps the best way to manage it would be to have 
a separate restart_airavata.yml playbook that would only run "restart" tagged 
tasks and would add the force_restart variable to run the task that forces a 
restart.


> Ansible: script to restart all Airavata services
> ------------------------------------------------
>
>                 Key: AIRAVATA-2673
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-2673
>             Project: Airavata
>          Issue Type: Bug
>            Reporter: Marcus Christie
>            Assignee: Marcus Christie
>            Priority: Major
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to