fix: kill Prezenta app.py before renaming folder in migrate_to_wmt playbook
This commit is contained in:
@@ -94,7 +94,16 @@
|
|||||||
debug:
|
debug:
|
||||||
msg: "{{ wayfire_check.stdout }}"
|
msg: "{{ wayfire_check.stdout }}"
|
||||||
|
|
||||||
# ── 7. Rename Prezenta → Prezenta_Old_Data ────────────────────────────
|
# ── 7. Kill any running Prezenta app.py before renaming ──────────────
|
||||||
|
- name: Kill any process running from Prezenta app.py
|
||||||
|
shell: pkill -f "Desktop/Prezenta/app.py" || true
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
- name: Wait a moment for the process to terminate
|
||||||
|
wait_for:
|
||||||
|
timeout: 3
|
||||||
|
|
||||||
|
# ── 8. Rename Prezenta → Prezenta_Old_Data ─────────────────────────── #
|
||||||
- name: Check if Prezenta folder exists
|
- name: Check if Prezenta folder exists
|
||||||
stat:
|
stat:
|
||||||
path: /home/pi/Desktop/Prezenta
|
path: /home/pi/Desktop/Prezenta
|
||||||
@@ -116,7 +125,7 @@
|
|||||||
msg: "⚠ Prezenta_Old_Data already exists — rename skipped to avoid overwrite."
|
msg: "⚠ Prezenta_Old_Data already exists — rename skipped to avoid overwrite."
|
||||||
when: prezenta_old_stat.stat.exists
|
when: prezenta_old_stat.stat.exists
|
||||||
|
|
||||||
# ── 8. Reboot ─────────────────────────────────────────────────────────
|
# ── 9. Reboot ─────────────────────────────────────────────────────────
|
||||||
- name: Reboot host to apply all changes
|
- name: Reboot host to apply all changes
|
||||||
become: true
|
become: true
|
||||||
reboot:
|
reboot:
|
||||||
|
|||||||
Reference in New Issue
Block a user