@ -17,16 +17,14 @@
|
|||||||
file: api/excluded_config.yaml
|
file: api/excluded_config.yaml
|
||||||
|
|
||||||
|
|
||||||
- name: Config
|
- name: Add/Update GLPI Config
|
||||||
ansible.builtin.include_tasks:
|
ansible.builtin.include_tasks:
|
||||||
file: api/config.yaml
|
file: api/config.yaml
|
||||||
when: >
|
when: >
|
||||||
item.api_path == 'Config'
|
|
||||||
and
|
|
||||||
not sub_item.name in skip_config
|
not sub_item.name in skip_config
|
||||||
and
|
and
|
||||||
sub_item.value is defined
|
sub_item.value is defined
|
||||||
loop: "{{ item_body }}"
|
loop: "{% if item.api_path == 'Config' %}{{ item_body }}{% else %}{{ [] }}{% endif %}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: sub_item
|
loop_var: sub_item
|
||||||
vars:
|
vars:
|
||||||
|
Reference in New Issue
Block a user