Advertisement
Guest User

Untitled

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