This repository has been archived by the owner on Nov 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:pariyatti/kosa
- Loading branch information
Showing
5 changed files
with
80 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
- hosts: app | ||
remote_user: "{{ user_acc }}" | ||
vars_files: | ||
- vars.yml | ||
|
||
tasks: | ||
- name: stop kosa | ||
systemd: name={{ app_name }} state=stopped | ||
become: yes | ||
|
||
- name: clone txt files from private repo | ||
tags: code | ||
environment: | ||
GIT_SSH_COMMAND: "ssh -i {{ DEPLOY_KEY_PATH }}" | ||
make: | ||
chdir: "{{ app_dir }}" | ||
target: "{{ seed_txt_clone_target }}" | ||
become: yes | ||
become_user: "{{ user_acc }}" | ||
|
||
- name: truncate (3x looped txt card types) xtdb database | ||
tags: code | ||
make: | ||
chdir: "{{ app_dir }}" | ||
target: "{{ seed_txt_trunc_target }}" | ||
become: yes | ||
become_user: "{{ user_acc }}" | ||
|
||
- name: update (3x looped txt card types) xtdb database | ||
tags: code | ||
make: | ||
chdir: "{{ app_dir }}" | ||
target: "{{ update_txt_apply_target }}" | ||
become: yes | ||
become_user: "{{ user_acc }}" | ||
|
||
- name: Recursively change ownership of srv directory | ||
ansible.builtin.file: | ||
path: "{{ srv_dir }}" | ||
state: directory | ||
recurse: yes | ||
owner: "{{ user_acc }}" | ||
group: "{{ user_acc }}" | ||
become: yes | ||
|
||
- name: start kosa | ||
systemd: name={{ app_name }} state=started enabled=yes | ||
become: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters