added new zabbix role

This commit is contained in:
DerLinkman
2026-05-24 00:25:01 +02:00
parent cef71dcd1b
commit 6ede4604e1
14 changed files with 194 additions and 1 deletions
+4
View File
@@ -1,2 +1,6 @@
- name: Include Docker installation tasks
ansible.builtin.include_tasks: install-docker.yml
when: docker_check is failed
- name: Include Docker APT migration tasks
ansible.builtin.include_tasks: migrate-apt.yml
+23
View File
@@ -0,0 +1,23 @@
- name: Remove old Docker APT repo list files (legacy deb format)
ansible.builtin.file:
path: "{{ item }}"
state: absent
loop:
- /etc/apt/sources.list.d/docker.list
- /etc/apt/sources.list.d/docker-ce.list
- /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list
register: docker_apt_sources_cleanup
failed_when: false
- name: Remove legacy Docker repo entries from /etc/apt/sources.list
ansible.builtin.lineinfile:
path: /etc/apt/sources.list
regexp: '^deb\s+.*download\.docker\.com/linux/.*$'
state: absent
register: docker_sources_list_cleanup
failed_when: false
- name: Update apt cache after legacy Docker repo cleanup
ansible.builtin.apt:
update_cache: true
when: docker_apt_sources_cleanup is changed or docker_sources_list_cleanup is changed