File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1515      ansible.builtin.command :
1616        chdir : /tmp/src 
1717        cmd : " /usr/bin/make docker/build V={{ app_version }}" 
18+       register : output 
19+       changed_when : output.rc != 0 
20+       failed_when : output.rc != 0 
1821
1922    - name : Create a server Makefile to manage app tasks 
2023      ansible.builtin.template :
4952      ansible.builtin.command :
5053        chdir : " {{ ansible_user_dir }}" 
5154        cmd : " docker compose up -d" 
55+       register : output 
56+       changed_when : output.rc != 0 
57+       failed_when : output.rc != 0 
5258
5359    - name : Migrate on prod 
5460      ansible.builtin.command :
5561        chdir : " {{ ansible_user_dir }}" 
5662        cmd : " /usr/bin/make prod/migrate" 
63+       register : output 
64+       changed_when : output.rc != 0 
65+       failed_when : output.rc != 0 
5766
5867    - name : Restart everything and finish 
5968      ansible.builtin.command :
6069        chdir : " {{ ansible_user_dir }}" 
6170        cmd : " docker compose up -d" 
71+       register : output 
72+       changed_when : output.rc != 0 
73+       failed_when : output.rc != 0 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments