fix: cicd change services
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
# TODO: Create venv and install ansible? That way not dependent on ansible
|
||||
# being installed on machine.
|
||||
---
|
||||
- name: Add a new service
|
||||
hosts: sls-vserv-bd-hla01-dev
|
||||
connection: local
|
||||
gather_facts: true # Gather once here, available to all included tasks!
|
||||
|
||||
vars:
|
||||
repo_root: "{{ playbook_dir }}/../.."
|
||||
|
||||
tasks:
|
||||
# - name: Install Master IOC
|
||||
# vars:
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
# Passed from the Gitea workflow, e.g., "master playground"
|
||||
changed_services_raw: ""
|
||||
agebd_env: "dev"
|
||||
repo_root: "{{ playbook_dir }}/../.."
|
||||
|
||||
tasks:
|
||||
# Fail early if no services were modified
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
# TODO: make sure this is what we want (essentially wipes existing dest dir)
|
||||
- name: "[{{ target_service_name_lower }}] Sync service deployment files"
|
||||
ansible.posix.synchronize:
|
||||
src: "{{ playbook_dir }}/../../../services/{{ target_service_name_lower }}/current/"
|
||||
src: "{{ repo_root }}/services/{{ target_service_name_lower }}/current/"
|
||||
dest: "{{ svc_current_dir }}/"
|
||||
delete: yes # This removes stale files on the target that no longer exist locally
|
||||
recursive: yes
|
||||
|
||||
Reference in New Issue
Block a user