diff --git a/tasks/Debian-default.yml b/tasks/Debian-default.yml deleted file mode 100644 index 8d20d2f..0000000 --- a/tasks/Debian-default.yml +++ /dev/null @@ -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' -... - diff --git a/tasks/default.yml b/tasks/default.yml deleted file mode 100644 index 546bf13..0000000 --- a/tasks/default.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -# tasks file for ensure_os_patch - diff --git a/tasks/main.yml b/tasks/main.yml index 0a96fbc..d0456f3 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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'