Skip packages that already installed
This commit is contained in:
parent
7c24efe69b
commit
0b5a7c157a
@ -35,6 +35,7 @@
|
|||||||
- ensure_log_rotation is defined
|
- ensure_log_rotation is defined
|
||||||
- ensure_log_rotation.package_list is defined
|
- ensure_log_rotation.package_list is defined
|
||||||
- ensure_log_rotation.package_list is iterable
|
- ensure_log_rotation.package_list is iterable
|
||||||
|
- packages[item.name] is not defined
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: '{{ item.name }}'
|
name: '{{ item.name }}'
|
||||||
state: '{{ item.state }}'
|
state: '{{ item.state }}'
|
||||||
@ -50,6 +51,7 @@
|
|||||||
- ensure_log_rotation is defined
|
- ensure_log_rotation is defined
|
||||||
- ensure_log_rotation.template_list is defined
|
- ensure_log_rotation.template_list is defined
|
||||||
- ensure_log_rotation.template_list is iterable
|
- ensure_log_rotation.template_list is iterable
|
||||||
|
- packages[item.name] is not defined
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
attributes: '{{ item.attributes | default(omit) }}'
|
attributes: '{{ item.attributes | default(omit) }}'
|
||||||
backup: '{{ item.backup | default(omit) }}'
|
backup: '{{ item.backup | default(omit) }}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user