Fix new role name substitution

This commit is contained in:
Tobias Reisinger 2026-11-13 19:49:47 +01:00
commit 89ced72d09
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
3 changed files with 9 additions and 9 deletions

View file

@ -1,12 +1,12 @@
---
NAME_svc:
NEW_ROLE_NAME_svc:
domain: "{{ all_services | service_get_domain(service_name) }}"
port: 80
NAME_env:
NEW_ROLE_NAME_env:
EXAMPLE: value
NAME_compose:
NEW_ROLE_NAME_compose:
watchtower: update
image:
volumes:

View file

@ -1,3 +1,3 @@
---
- name: Restart service NAME
ansible.builtin.include_tasks: tasks/restart-service.yml
- name: Restart service NEW_ROLE_NAME
ansible.builtin.include_tasks: "{{ tasks_dir }}/restart-service.yml"

View file

@ -4,9 +4,9 @@
- name: Deploy {{ service_name }}
vars:
svc: "{{ NAME_svc }}"
env: "{{ NAME_env }}"
compose: "{{ NAME_compose }}"
svc: "{{ NEW_ROLE_NAME_svc }}"
env: "{{ NEW_ROLE_NAME_env }}"
compose: "{{ NEW_ROLE_NAME_compose }}"
block:
- name: Import tasks to deploy common service
ansible.builtin.include_tasks: "{{ tasks_dir }}/deploy-common-service.yml"