ansible-roles/fusiondirectory/tasks/manage-fd-schemas.yml

28 lines
847 B
YAML
Raw Normal View History

---
- block:
- name: Install the fusiondirectory main schemas
apt: name={{ item }} state=present update_cache=yes
with_items: '{{ fusiondirectory_main_schemas }}'
- name: Install the fusiondirectory additional schemas
apt: name={{ item }} state=present
with_items: '{{ fusiondirectory_schemas | default ([]) }}'
when: fusiondirectory_schemas_install
tags: [ 'fusiondirectory', 'fd_schemas' ]
- block:
- name: Remove the fusiondirectory main schemas
apt: name={{ item }} state=absent
with_items: '{{ fusiondirectory_main_schemas }}'
- name: Remove the fusiondirectory additional schemas
apt: name={{ item }} state=absent
with_items: '{{ fusiondirectory_schemas | default ([]) }}'
when: not fusiondirectory_schemas_install
tags: [ 'fusiondirectory', 'fd_schemas' ]