Remove deplicate code
Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
@@ -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'
|
||||
...
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
---
|
||||
# tasks file for ensure_os_patch
|
||||
|
||||
@@ -1,21 +1,5 @@
|
||||
---
|
||||
# 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'
|
||||
when:
|
||||
- ansible_facts["system"] == 'Linux'
|
||||
|
||||
Reference in New Issue
Block a user