Advertisement
Guest User

Untitled

a guest
Dec 17th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. ---
  2. - name: update apt cache
  3. apt: update_cache=yes
  4.  
  5. - apt: name="atop" state=present
  6. - apt: name="host" state=present
  7. - apt: name="htop" state=present
  8. - apt: name="lsof" state=present
  9. - apt: name="curl" state=present
  10. - apt: name="fail2ban" state=present
  11. - apt: name="syslog-ng-core" state=present
  12. - apt: name="nano" state=present
  13. - apt: name="postfix" state=present
  14.  
  15. - replace:
  16. path: /etc/postfix/main.cf
  17. regexp: '(\s+)inet_interfaces = all(\s+.*)?$'
  18. replace: '\1inet_interfaces = loopback-only\2'
  19. backup: no
  20.  
  21. #- name: postfix restart
  22. #systemd:
  23. #name: postfix
  24. #state: restarted
  25. #no_block: yes
  26.  
  27. - name: install /etc/aliases
  28. copy: src="files/mail.aliases" dest="/etc/aliases" owner=root group=root mode=0644
  29.  
  30. - name: run newaliases for postfix renew
  31. command: /usr/bin/newaliases
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement