Skip to content

Commit

Permalink
[ansible/ovos] Fix backup issue
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Jun 30, 2024
1 parent ac93177 commit 7bd73c3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
24 changes: 13 additions & 11 deletions ansible/roles/ovos_installer/tasks/ovos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,22 @@
- "{{ ovos_installer_user_home }}/.config/OpenVoiceOS/*"
- "{{ ovos_installer_user_home }}/.config/wireplumber/*"
- "{{ ovos_installer_user_home }}/.local/share/hivemind/*"
when: ovos_installer_cleaning | bool
tags:
- uninstall

# - name: Backup existing configurations before uninstall
# community.general.archive:
# path: "{{ ovos_directories_backup }}"
# dest: "{{ ovos_installer_user_home }}/ovos-backup.tar.gz"
# owner: "{{ ovos_installer_user }}"
# group: "{{ ovos_installer_group }}"
# mode: "0755"
# format: gz
# force_archive: true
# tags:
# - uninstall
- name: Backup existing configurations before uninstall
community.general.archive:
path: "{{ ovos_directories_backup }}"
dest: "{{ ovos_installer_user_home }}/ovos-backup.tar.gz"
owner: "{{ ovos_installer_user }}"
group: "{{ ovos_installer_group }}"
mode: "0755"
format: gz
force_archive: true
when: ovos_installer_cleaning | bool
tags:
- uninstall

- name: Create directories
ansible.builtin.file:
Expand Down
3 changes: 0 additions & 3 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ i2c_scan
trap "" ERR
set +eE

# Set default Ansible tag
#ansible_tags=(--tags unttaged)

if [ "$SCENARIO_FOUND" == "false" ]; then
# shellcheck source=tui/language.sh
source tui/language.sh
Expand Down

0 comments on commit 7bd73c3

Please sign in to comment.