chore: fix ioc start
Deploy bin / deploy (push) Successful in 4s
Deploy agebd python package / deploy (push) Successful in 5s

This commit is contained in:
Benjamin Labrecque
2026-07-08 11:26:56 +02:00
parent 3580491fda
commit b17e7ef0d9
2 changed files with 3 additions and 9 deletions
+1 -8
View File
@@ -9,14 +9,7 @@
# Uses ioc_service_dir_name if defined in vars, otherwise falls back to the CLI extra-vars
service_dir_name: "{{ ioc_service_dir_name | default(new_service_dir_name) }}"
- name: "[{{ service_dir_name }}] Establish environment naming conventions"
ansible.builtin.set_fact:
# Example: extract MASTER from 000-master
service_name_upper: "{{ service_dir_name[4:] | upper }}"
# Set suffix to "-DEV" if dev, otherwise empty ""
env_suffix_upper: "{{ '-DEV' if agebd_env == 'dev' else '' }}"
- name: "[{{ service_dir_name }}] Start IOC"
ansible.builtin.shell: |
sudo shellbox start {{ service_name_upper }}{{ env_suffix_upper }}
sudo shellbox start {{ ioc_port }}
changed_when: true
+2 -1
View File
@@ -20,10 +20,11 @@ ansible-playbook ansible/plays/ioc/ioc-install.yml \
```
### Start an IOC
TODO: how to get the ioc_port in cicd? Add it to the branch name?
```
ansible-playbook ansible/plays/ioc/ioc-start.yml \
-i ansible/hosts.yml \
--extra-vars="agebd_env=dev new_service_dir_name=001-playground" \
--extra-vars="new_service_dir_name=001-playground ioc_port=50003" \
-v
```