Skip to content

Commit

Permalink
update - fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
superstes committed Oct 27, 2021
1 parent 4ae6a13 commit f93eeff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions setup/roles/update/tasks/backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
mode: 0750

- name: GA | Update | Backup | Backing up directories
ansible.builtin.shell: "tar cf - {{ item.src }} | xz -7 > {{ item.dst }}"
warn: false
ansible.builtin.shell:
cmd: "tar cf - {{ item.src }} | xz -7 > {{ item.dst }}"
warn: false
with_items:
- {src: "{{ ga_update_path_core }}", dst: "{{ ga_update_path_backup }}/core.tar.xz"}
- {src: "{{ ga_update_path_web }}", dst: "{{ ga_update_path_backup }}/web.tar.xz"}
Expand Down
10 changes: 6 additions & 4 deletions setup/roles/update/tasks/restore.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---

- name: GA | Update | Restore | Saving logs for debug reasons
ansible.builtin.shell: "tar cf - {{ ga_update_path_log }} | xz -7 > {{ ga_update_path_backup }}/log_restore.tar.xz"
warn: false
ansible.builtin.shell:
cmd: "tar cf - {{ ga_update_path_log }} | xz -7 > {{ ga_update_path_backup }}/log_restore.tar.xz"
warn: false

- name: GA | Update | Restore | Stopping core service
ansible.builtin.systemd:
Expand All @@ -23,8 +24,9 @@
- "{{ ga_update_path_log }}"

- name: GA | Update | Restore | Restoring directories
ansible.builtin.shell: "tar -xJf {{ item }} -C /"
warn: false
ansible.builtin.shell:
cmd: "tar -xJf {{ item }} -C /"
warn: false
with_items:
- "{{ ga_update_path_backup }}/core.tar.xz"
- "{{ ga_update_path_backup }}/web.tar.xz"
Expand Down

0 comments on commit f93eeff

Please sign in to comment.