Skip to content

Commit f161831

Browse files
committed
make opendistro migration idempotent
1 parent 06b3cc6 commit f161831

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ansible/roles/opensearch/tasks/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
file: migrate-opendistro.yml
1111
when: _opensearch_opendistro_service.stat.exists
1212

13+
- name: Remove opendistro service
14+
file:
15+
path: /etc/systemd/system/opendistro.service
16+
state: absent
17+
1318
- name: Increase maximum number of virtual memory maps
1419
# see https://opensearch.org/docs/2.0/opensearch/install/important-settings/
1520
ansible.posix.sysctl:

0 commit comments

Comments
 (0)