This commit is contained in:
parent
a9d87e7fd3
commit
d565b8fcc1
1 changed files with 14 additions and 3 deletions
|
|
@ -3,10 +3,18 @@
|
||||||
include_vars: "{{ ansible_os_family }}.yml"
|
include_vars: "{{ ansible_os_family }}.yml"
|
||||||
|
|
||||||
- name: Install packages for dovecot
|
- name: Install packages for dovecot
|
||||||
package: name="{{ dovecot_packages }}" state=latest update_cache=yes
|
package:
|
||||||
|
name: "{{ dovecot_packages }}"
|
||||||
|
state: present
|
||||||
|
update_cache: yes
|
||||||
|
|
||||||
- name: Deploy configuration
|
- name: Deploy configuration
|
||||||
template: src=etc/dovecot/{{ item }}.j2 dest=/etc/dovecot/{{ item }} owner=root group=root mode=0644
|
template:
|
||||||
|
src: etc/dovecot/{{ item }}.j2
|
||||||
|
dest: /etc/dovecot/{{ item }}
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0644
|
||||||
with_items:
|
with_items:
|
||||||
# - dovecot.conf
|
# - dovecot.conf
|
||||||
- conf.d/10-auth.conf
|
- conf.d/10-auth.conf
|
||||||
|
|
@ -24,5 +32,8 @@
|
||||||
immediate: true
|
immediate: true
|
||||||
|
|
||||||
- name: Enable dovecot at boot time
|
- name: Enable dovecot at boot time
|
||||||
service: name=dovecot enabled=yes state=started
|
service:
|
||||||
|
name: dovecot
|
||||||
|
enabled: yes
|
||||||
|
state: started
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue