Externalize role
This commit is contained in:
commit
4087f0a9f1
31 changed files with 1838 additions and 0 deletions
28
tasks/main.yml
Normal file
28
tasks/main.yml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
- name: Include vars for {{ ansible_os_family }}
|
||||
include_vars: "{{ ansible_os_family }}.yml"
|
||||
|
||||
- name: Install packages for dovecot
|
||||
package: name="{{ dovecot_packages }}" state=latest update_cache=yes
|
||||
|
||||
- name: Deploy configuration
|
||||
template: src=etc/dovecot/{{ item }}.j2 dest=/etc/dovecot/{{ item }} owner=root group=root mode=0644
|
||||
with_items:
|
||||
# - dovecot.conf
|
||||
- conf.d/10-auth.conf
|
||||
- conf.d/10-logging.conf
|
||||
- conf.d/10-mail.conf
|
||||
- conf.d/10-master.conf
|
||||
- conf.d/10-ssl.conf
|
||||
notify: Restart dovecot
|
||||
|
||||
- name: Open Firewalld
|
||||
firewalld:
|
||||
service: imaps
|
||||
permanent: true
|
||||
state: enabled
|
||||
immediate: true
|
||||
|
||||
- name: Enable dovecot at boot time
|
||||
service: name=dovecot enabled=yes state=started
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue