support volumes that are paths on the host
This commit is contained in:
parent
e688ca9f6c
commit
40a1d88bdf
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Activar container dovecot
|
- name: Activar container dovecot
|
||||||
docker_container:
|
docker_container:
|
||||||
name: "{{ dovecot_container }}"
|
name: "{{ dovecot_container }}"
|
||||||
@ -50,31 +49,64 @@
|
|||||||
ANTISPAM_ENABLE: "{{ 'yes' if dovecot_antispam_enable else '' }}"
|
ANTISPAM_ENABLE: "{{ 'yes' if dovecot_antispam_enable else '' }}"
|
||||||
register: container
|
register: container
|
||||||
|
|
||||||
- name: Leer info de volumen {{ dovecot_volume_config }}
|
- name: Exportar informacion de container
|
||||||
|
set_fact:
|
||||||
|
dovecot_container: "{{ lookup('vars','dovecot_container') }}"
|
||||||
|
|
||||||
|
- when: dovecot_volume_config[0] != '/'
|
||||||
|
block:
|
||||||
|
- name: Leer info de volumen {{ dovecot_volume_config }}
|
||||||
docker_volume_info:
|
docker_volume_info:
|
||||||
name: "{{ dovecot_volume_config }}"
|
name: "{{ dovecot_volume_config }}"
|
||||||
register: res_cfg
|
register: res_cfg
|
||||||
|
- name: Exportar informacion de volumen
|
||||||
|
set_fact:
|
||||||
|
dovecot_volume_config: "{{ lookup('vars','dovecot_volume_config') }}"
|
||||||
|
dovecot_mountpoint_config: "{{ res_cfg.volume.Mountpoint }}"
|
||||||
|
|
||||||
- name: Leer info de volumen {{ dovecot_volume_mail }}
|
- when: dovecot_volume_config[0] == '/'
|
||||||
|
block:
|
||||||
|
- name: Exportar informacion de volumen
|
||||||
|
set_fact:
|
||||||
|
dovecot_volume_config: "{{ lookup('vars','dovecot_volume_config') }}"
|
||||||
|
dovecot_mountpoint_config: "{{ lookup('vars','dovecot_volume_config') }}"
|
||||||
|
|
||||||
|
- when: dovecot_volume_mail[0] != '/'
|
||||||
|
block:
|
||||||
|
- name: Leer info de volumen {{ dovecot_volume_mail }}
|
||||||
docker_volume_info:
|
docker_volume_info:
|
||||||
name: "{{ dovecot_volume_mail }}"
|
name: "{{ dovecot_volume_mail }}"
|
||||||
register: res_mail
|
register: res_mail
|
||||||
|
- name: Exportar informacion de volumen
|
||||||
|
set_fact:
|
||||||
|
dovecot_volume_mail: "{{ lookup('vars','dovecot_volume_mail') }}"
|
||||||
|
dovecot_mountpoint_mail: "{{ res_mail.volume.Mountpoint }}"
|
||||||
|
|
||||||
- name: Leer info de volumen {{ dovecot_volume_ssl }}
|
- when: dovecot_volume_mail[0] == '/'
|
||||||
|
block:
|
||||||
|
- name: Exportar informacion de volumen
|
||||||
|
set_fact:
|
||||||
|
dovecot_volume_mail: "{{ lookup('vars','dovecot_volume_mail') }}"
|
||||||
|
dovecot_mountpoint_mail: "{{ lookup('vars','dovecot_volume_mail') }}"
|
||||||
|
|
||||||
|
- when: dovecot_volume_ssl[0] != '/'
|
||||||
|
block:
|
||||||
|
- name: Leer info de volumen {{ dovecot_volume_ssl }}
|
||||||
docker_volume_info:
|
docker_volume_info:
|
||||||
name: "{{ dovecot_volume_ssl }}"
|
name: "{{ dovecot_volume_ssl }}"
|
||||||
register: res_ssl
|
register: res_ssl
|
||||||
|
- name: Exportar informacion de volumen
|
||||||
- name: Exportar informacion de volumen
|
|
||||||
set_fact:
|
set_fact:
|
||||||
dovecot_container: "{{ lookup('vars','dovecot_container') }}"
|
|
||||||
dovecot_volume_config: "{{ lookup('vars','dovecot_volume_config') }}"
|
|
||||||
dovecot_mountpoint_config: "{{ res_cfg.volume.Mountpoint }}"
|
|
||||||
dovecot_volume_mail: "{{ lookup('vars','dovecot_volume_mail') }}"
|
|
||||||
dovecot_mountpoint_mail: "{{ res_mail.volume.Mountpoint }}"
|
|
||||||
dovecot_volume_ssl: "{{ lookup('vars','dovecot_volume_ssl') }}"
|
dovecot_volume_ssl: "{{ lookup('vars','dovecot_volume_ssl') }}"
|
||||||
dovecot_mountpoint_ssl: "{{ res_ssl.volume.Mountpoint }}"
|
dovecot_mountpoint_ssl: "{{ res_ssl.volume.Mountpoint }}"
|
||||||
|
|
||||||
|
- when: dovecot_volume_ssl[0] == '/'
|
||||||
|
block:
|
||||||
|
- name: Exportar informacion de volumen
|
||||||
|
set_fact:
|
||||||
|
dovecot_volume_ssl: "{{ lookup('vars','dovecot_volume_ssl') }}"
|
||||||
|
dovecot_mountpoint_ssl: "{{ lookup('vars','dovecot_volume_ssl') }}"
|
||||||
|
|
||||||
# FIXME: configurar quota mediante confd
|
# FIXME: configurar quota mediante confd
|
||||||
#
|
#
|
||||||
# - name: Configuración de Dovecot (1)
|
# - name: Configuración de Dovecot (1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user