eadl:bloc4:fm2:td3

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
eadl:bloc4:fm2:td3 [2026/05/26 09:10] – [6. Role PostgreSQL] jcheroneadl:bloc4:fm2:td3 [2026/06/12 08:05] (Version actuelle) jcheron
Ligne 1: Ligne 1:
-====== TD - Automatisation d'une stack web avec Ansible ======+====== TD3 - Automatisation d'une stack web avec Ansible ======
  
 ===== Objectifs ===== ===== Objectifs =====
Ligne 528: Ligne 528:
  
 - name: Demarrage de Flask - name: Demarrage de Flask
-  systemd: +  shellnohup python3 /opt/flask/app.py > /var/log/flask.log 2>&1 & 
-    name: flask +  args 
-    statestarted +    chdir/opt/flask
-    enabledyes +
-    daemon_reload: yes+
 </sxh> </sxh>
  
Ligne 540: Ligne 538:
 --- ---
 - name: restart flask - name: restart flask
-  systemd: +  shellpkill -f "python3 /opt/flask/app.py"; nohup python3 /opt/flask/app.py > /var/log/flask.log 2>&1 & 
-    name: flask +  args 
-    staterestarted +    chdir/opt/flask
-    daemon_reloadyes+
 </sxh> </sxh>
  
Ligne 668: Ligne 665:
 Verifiez que l'application repond : Verifiez que l'application repond :
  
-  curl http://localhost:8080/health+  curl http://localhost:8090/health
 </WRAP> </WRAP>
  
  • eadl/bloc4/fm2/td3.1779779441.txt.gz
  • Dernière modification : il y a 6 semaines
  • de jcheron