Procházet zdrojové kódy

pause for a minimum of 15 seconds

Stefanie Forrester před 9 roky
rodič
revize
6248101e89
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      roles/fluentd_master/tasks/main.yml

+ 1 - 1
roles/fluentd_master/tasks/main.yml

@@ -40,7 +40,7 @@
     mode: 0444
 
 - name: "Pause before restarting td-agent and openshift-master, depending on the number of nodes."
-  pause: seconds={{ num_nodes|int * 5 }}
+  pause: seconds={{ ( num_nodes|int < 3 ) | ternary(15, (num_nodes * 5)) }}
 
 - name: ensure td-agent is running
   service: