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.

26 lines
462B

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