Skip packages that already installed

This commit is contained in:
Jason Rothstein 2021-07-05 04:47:05 +00:00
parent 7c24efe69b
commit 0b5a7c157a

View File

@ -35,6 +35,7 @@
- ensure_log_rotation is defined
- ensure_log_rotation.package_list is defined
- ensure_log_rotation.package_list is iterable
- packages[item.name] is not defined
ansible.builtin.package:
name: '{{ item.name }}'
state: '{{ item.state }}'
@ -50,6 +51,7 @@
- ensure_log_rotation is defined
- ensure_log_rotation.template_list is defined
- ensure_log_rotation.template_list is iterable
- packages[item.name] is not defined
ansible.builtin.template:
attributes: '{{ item.attributes | default(omit) }}'
backup: '{{ item.backup | default(omit) }}'