Fix new role name substitution
This commit is contained in:
parent
1e684d3631
commit
89ced72d09
3 changed files with 9 additions and 9 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue