Skip to content

Commit 028a3ec

Browse files
Fix/debian pipeline (#269)
Close #258 This PR will fix the problem on debian the problem on rocky is already fixed in another branch, but GitHub did not close the issue that time, I do not know why.
1 parent c2dc529 commit 028a3ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roles/elasticsearch/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
- name: Force systemd to reread configs on container
176176
ansible.builtin.systemd:
177177
daemon_reload: true
178-
when: ansible_virtualization_type == "container"
178+
when: ansible_virtualization_type == "container" or ansible_virtualization_type == "docker"
179179

180180
# Free up some space to let elsticsearch allocate replica in GitHub Action
181181
- name: Remove cache # noqa: risky-shell-pipe
@@ -184,7 +184,7 @@
184184
rm -rf /var/cache/*
185185
failed_when: false
186186
changed_when: false
187-
when: ansible_virtualization_type == "container"
187+
when: ansible_virtualization_type == "container" or ansible_virtualization_type == "docker"
188188

189189
- name: Import Tasks elasticsearch-security.yml
190190
ansible.builtin.import_tasks: elasticsearch-security.yml

0 commit comments

Comments
 (0)