Remove deplicate code

Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
2026-05-05 14:28:22 -05:00
parent c082b8b488
commit cdcdbb2ed9
3 changed files with 0 additions and 36 deletions
-17
View File
@@ -1,17 +0,0 @@
---
# tasks file for ensure_os_patch
- name: 'ensure Debian patch'
when:
- ansible_facts["system"] == 'Linux'
- ansible_facts["pkg_mgr"]== 'apt'
ansible.builtin.apt:
autoclean: 'yes'
autoremove: 'yes'
upgrade: 'dist'
notify:
- 'ensure_os_patch.package_facts'
- 'ensure_os_patch.service_facts'
- name: 'flush handlers'
meta: 'flush_handlers'
...
-3
View File
@@ -1,3 +0,0 @@
---
# tasks file for ensure_os_patch
-16
View File
@@ -1,21 +1,5 @@
--- ---
# tasks file for ensure_os_patch # tasks file for ensure_os_patch
- name: 'include vendor / version specific tasks'
when:
- ansible_facts["system"] == 'Linux'
include_tasks:
file: '{{ lookup("first_found", findme ) }}'
vars:
findme:
files:
- '{{ ansible_facts["distribution"] }}-{{ ansible_facts["distribution_major_version"] }}-{{ ansible_facts["architecture"] }}.yml'
- '{{ ansible_facts["distribution"] }}-{{ ansible_facts["distribution_major_version"] }}-default.yml'
- '{{ ansible_facts["distribution"] }}-default.yml'
- '{{ ansible_facts["os_family"] }}-{{ ansible_facts["distribution_major_version"] }}-{{ ansible_facts["architecture"] }}.yml'
- '{{ ansible_facts["os_family"] }}-{{ ansible_facts["distribution_major_version"] }}-default.yml'
- '{{ ansible_facts["os_family"] }}-default.yml'
- 'default.yml'
errors: 'ignore'
- name: 'include variables' - name: 'include variables'
when: when:
- ansible_facts["system"] == 'Linux' - ansible_facts["system"] == 'Linux'