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 7c8076c commit b9b89ab
Showing 1 changed file with 24 additions and 20 deletions.
44 changes: 24 additions & 20 deletions setup/roles/update/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---

- debug:
msg: "########################################\n
########################################\n
Preparing for Update!\n
########################################\n
########################################"
msg:
- '########################################'
- '########################################'
- 'Preparing for Update!'
- '########################################'
- '########################################'

- name: GA | Update | Installing dependencies
ansible.builtin.apt:
Expand All @@ -21,11 +22,12 @@
ansible.builtin.import_tasks: backup.yml

- debug:
msg: "########################################\n
########################################\n
GrowAutomation will now be upgraded to version {{ ga_update_release_now }} - '{{ ga_update_commit_now }}'!\n
########################################\n
########################################"
msg:
- '########################################'
- '########################################'
- "GrowAutomation will now be upgraded to version {{ ga_update_release_now }} - '{{ ga_update_commit_now }}'!"
- '########################################'
- '########################################'

- name: GA | Update | Running update tasks
ansible.builtin.import_tasks: do.yml
Expand Down Expand Up @@ -74,17 +76,19 @@
- 'apache2.service'

- debug:
msg: "########################################\n
########################################\n
GrowAutomation was successfully updated to version {{ ga_update_release_now }} - '{{ ga_update_commit_now }}'!\n
########################################\n
########################################"
msg:
- '########################################'
- '########################################'
- "GrowAutomation was successfully updated to version {{ ga_update_release_now }} - '{{ ga_update_commit_now }}'!"
- '########################################'
- '########################################'
when: not ga_update_failed

- debug:
msg: "########################################\n
########################################\n
GrowAutomation update to version {{ ga_update_release_now }} - '{{ ga_update_commit_now }}' FAILED!\n
########################################\n
########################################"
msg:
- '########################################'
- '########################################'
- "GrowAutomation update to version {{ ga_update_release_now }} - '{{ ga_update_commit_now }}' FAILED!"
- '########################################'
- '########################################'
when: ga_update_failed

0 comments on commit b9b89ab

Please sign in to comment.