b401a956d5
Remove binary, config, masq, system user, ufw rules, and apt packages from VPS; delete output/<server>/ by default and rebuild global index.html via localhost play. Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
540 B
YAML
21 lines
540 B
YAML
---
|
|
- name: Uninstall Hysteria2 servers
|
|
hosts: hysteria2_servers
|
|
gather_facts: false
|
|
roles:
|
|
- role: hysteria2
|
|
tags: [uninstall]
|
|
|
|
- name: Rebuild global output index after uninstall
|
|
hosts: localhost
|
|
connection: local
|
|
gather_facts: true
|
|
become: false
|
|
tags: [uninstall]
|
|
tasks:
|
|
- name: Regenerate output/index.html from remaining servers
|
|
ansible.builtin.include_role:
|
|
name: hysteria2
|
|
tasks_from: export_global.yml
|
|
when: hysteria2_uninstall_rebuild_global_index | default(true) | bool
|