Add support for apt based distributions like Debian

This commit is contained in:
Jason Rothstein 2020-01-01 22:57:56 -06:00
parent 05005fb2b7
commit 4cee19dc73

View File

@ -20,6 +20,14 @@
notify:
- 'ensure_os_patch.package_facts'
- 'ensure_os_patch.service_facts'
- name: 'ensure patch'
when:
- ansible_system == 'Linux'
- ansible_pkg_mgr == 'apt'
apt:
autoclean: 'yes'
autoremove: 'yes'
upgrade: 'dist'
- name: 'flush handlers'
meta: 'flush_handlers'