Skip to content

Commit 1a25a62

Browse files
authored
fix: Fixed error when using external vars for defining container_name. (#61)
1 parent 3bab977 commit 1a25a62

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

handlers/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
- name: "restart container {{ container_name }}"
2+
- name: "restart container"
33
service:
44
name: '{{ service_name }}.service'
55
state: restarted

tasks/install.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
group: root
88
mode: '0600'
99
when: container_env is defined
10-
notify: restart container {{ container_name }}
10+
notify: restart container
1111

1212
- name: Pull image {{ container_image }}
1313
community.docker.docker_image:
1414
name: '{{ container_image }}'
1515
force_source: '{{ container_docker_pull_force_source | bool }}'
1616
source: pull
1717
when: container_docker_pull
18-
notify: restart container {{ container_name }}
18+
notify: restart container
1919

2020
- name: Create unit {{ service_name }}.service
2121
template:
@@ -24,7 +24,7 @@
2424
owner: root
2525
group: root
2626
mode: '0644'
27-
notify: restart container {{ container_name }}
27+
notify: restart container
2828

2929
- name: Enable and start {{ container_name }}
3030
systemd:

0 commit comments

Comments
 (0)