From fd4b90f43d39dd4eaef6467ad48f29b04684988e Mon Sep 17 00:00:00 2001 From: phil Date: Wed, 6 Dec 2023 10:42:21 +0100 Subject: [PATCH] Remove dpkg hook It seams not possible to run hooks only on specific package updates --- tasks/main.yml | 7 ------- templates/72opensearch-updates.j2 | 5 ----- 2 files changed, 12 deletions(-) delete mode 100644 templates/72opensearch-updates.j2 diff --git a/tasks/main.yml b/tasks/main.yml index 486c333..64e87c0 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -58,10 +58,3 @@ src: update-opensearch-plugins.j2 dest: "/usr/local/bin/{{ opensearch_plugin_update_script }}" mode: "0755" - -- name: "Opensearch | Enable dpkg hook" - ansible.builtin.template: - src: 72opensearch-updates.j2 - dest: /etc/apt/apt.conf.d/72opensearch-updates - mode: "0644" - \ No newline at end of file diff --git a/templates/72opensearch-updates.j2 b/templates/72opensearch-updates.j2 deleted file mode 100644 index ae38250..0000000 --- a/templates/72opensearch-updates.j2 +++ /dev/null @@ -1,5 +0,0 @@ -# {{ ansible_managed }} -# Reinstall Plugins - -DPkg::Pre-Invoke {"/usr/local/bin/{{ opensearch_plugin_update_script }} purge";}; -DPkg::Post-Invoke {"/usr/local/bin/{{ opensearch_plugin_update_script }} install";};