Skip to content

Commit

Permalink
Add migration scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
m-pilarczyk committed Jul 26, 2023
1 parent 2c056f6 commit c89c8d2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ service_user: adshares

setup: false
deploy: false
migrate: false

server_domain: localhost
server_name: "Adshares AdServer"
Expand All @@ -21,4 +22,4 @@ vendor_dir: /opt/adshares
log_dir: /var/log/adshares

repo_version: master
clean_after_days: 7
clean_after_days: 7
3 changes: 0 additions & 3 deletions tasks/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
- name: "{{ service_name }} | deploy | Update service"
include_tasks: deploy/update.yaml

#- name: "{{ service_name }} | deploy | Migrate service"
# include_tasks: deploy/migrate.yaml

- name: "{{ service_name }} | deploy | Build service"
include_tasks: deploy/build.yaml

Expand Down
4 changes: 4 additions & 0 deletions tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@
- name: "{{ service_name }} | Deploy service"
include_tasks: deploy.yaml
when: deploy

- name: "{{ service_name }} | Migrate service"
include_tasks: migrate.yaml
when: migrate
5 changes: 5 additions & 0 deletions tasks/migrate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- name: "{{ service_name }} | migrate | Update cron"
include_tasks: setup/cron.yaml

- name: "{{ service_name }} | migrate | Update supervisor"
include_tasks: setup/supervisor.yaml

0 comments on commit c89c8d2

Please sign in to comment.