25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
539B

  1. ---
  2. - name: install packages
  3. apt:
  4. pkg: "{{item}}"
  5. with_items:
  6. - postfix
  7. - postfix-mysql
  8. - name: main configuration
  9. template:
  10. src: main.cf.j2
  11. dest: /etc/postfix/main.cf
  12. notify: reload postfix
  13. - include: postfixadmin.yml
  14. - name: configuration pull directory
  15. local_action: file
  16. args:
  17. path: ~/host_files/{{inventory_hostname}}/etc
  18. state: directory
  19. - name: pull configuration
  20. synchronize:
  21. src: /etc/postfix
  22. dest: ~/host_files/{{inventory_hostname}}/etc/
  23. mode: pull
  24. recursive: true