From 8ab5a493398d000c1a29a946dafa418f186c53d6 Mon Sep 17 00:00:00 2001 From: rubenb Date: Mon, 15 Jul 2024 19:06:09 +0200 Subject: [PATCH] exim4 update patch package exim4 vulnerability cve-2024-39929 --- linux-patch-exim4.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 linux-patch-exim4.yaml diff --git a/linux-patch-exim4.yaml b/linux-patch-exim4.yaml new file mode 100644 index 0000000..1d240b9 --- /dev/null +++ b/linux-patch-exim4.yaml @@ -0,0 +1,27 @@ +--- + +- hosts: '{{ ip_addr }}' + become: yes + become_method: sudo + gather_facts: yes + + tasks: + +# step1 - run apt-get update + - name: update index of all packages + ansible.builtin.apt: + update_cache: true + force_apt_get: true + +# step2 - run apt-get update + - name: update all packages to their latest version + ansible.builtin.apt: + name: "exim4" + state: latest + force_apt_get: true + +# step3 - run apt autoremove + - name: autoremove packages unused dependency packages + ansible.builtin.apt: + autoremove: true + force_apt_get: true \ No newline at end of file