You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 line
726B

  1. ---
  2. - name: install package
  3. apt:
  4. pkg: "{{ item }}"
  5. with_items:
  6. - dovecot-imapd
  7. - dovecot-lmtpd
  8. - name: dovecot main configuration file
  9. template:
  10. src: dovecot.conf.j2
  11. dest: /etc/dovecot/dovecot.conf
  12. notify:
  13. - reload dovecot
  14. - name: dovecot configuration files
  15. template:
  16. src: conf.d/{{ item }}.j2
  17. dest: /etc/dovecot/conf.d/{{ item }}
  18. with_items:
  19. - 10-mail.conf
  20. notify:
  21. - reload dovecot
  22. - name: configuration pull directory
  23. local_action: file
  24. args:
  25. path: host_files/{{inventory_hostname}}/etc
  26. state: directory
  27. - name: pull configuration
  28. synchronize:
  29. src: /etc/dovecot
  30. dest: host_files/{{inventory_hostname}}/etc/
  31. mode: pull
  32. recursive: true