From b17e7ef0d98949805496f9ffc264ca9a0d6b221a Mon Sep 17 00:00:00 2001 From: Benjamin Labrecque Date: Wed, 8 Jul 2026 11:26:56 +0200 Subject: [PATCH] chore: fix ioc start --- ansible/plays/ioc/ioc-start.yml | 9 +-------- docs/ansible.md | 3 ++- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/ansible/plays/ioc/ioc-start.yml b/ansible/plays/ioc/ioc-start.yml index e01a972..2a2be09 100644 --- a/ansible/plays/ioc/ioc-start.yml +++ b/ansible/plays/ioc/ioc-start.yml @@ -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 \ No newline at end of file diff --git a/docs/ansible.md b/docs/ansible.md index e8bc19d..5845e48 100644 --- a/docs/ansible.md +++ b/docs/ansible.md @@ -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 ```