forked from ISTI-ansible-roles/ansible-roles
28 lines
847 B
YAML
28 lines
847 B
YAML
---
|
|
- 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' ]
|
|
|