Merge pull request 'exim4 update patch package exim4 vulnerability cve-2024-39929' (!23) from 7727-PatchExim4CVE_2024_39929 into main

Reviewed-on: #23
This commit is contained in:
Ruben Blanco 2024-07-17 09:33:17 +00:00
commit b5e29f522c
1 changed files with 27 additions and 0 deletions

27
linux-patch-exim4.yaml Normal file
View File

@ -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