mirror of
https://github.com/aljazceru/ansible-elasticsearch.git
synced 2025-12-17 17:14:20 +01:00
Idempotent fix
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: Debian - hold elasticsearch version
|
- name: Debian - hold elasticsearch version
|
||||||
command: apt-mark hold elasticsearch
|
command: apt-mark hold elasticsearch
|
||||||
|
register: hold_elasticsearch_result
|
||||||
|
changed_when: "hold_elasticsearch_result.stdout != 'elasticsearch was already set on hold.'"
|
||||||
@@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
- command: java -version 2>&1 | grep OpenJDK
|
- command: java -version 2>&1 | grep OpenJDK
|
||||||
register: open_jdk
|
register: open_jdk
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
- name: refresh the java ca-certificates
|
- name: refresh the java ca-certificates
|
||||||
command: /var/lib/dpkg/info/ca-certificates-java.postinst configure
|
command: /var/lib/dpkg/info/ca-certificates-java.postinst configure
|
||||||
|
|||||||
Reference in New Issue
Block a user