您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

38 行
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