2
0

main.yml 540 B

12345678910111213141516171819202122
  1. - import_tasks: sshd.yml
  2. - import_tasks: ulimits.yml
  3. - name: Set timezone
  4. become: true
  5. shell: timedatectl set-timezone UTC
  6. - name: Setup journald storage
  7. become: true
  8. lineinfile:
  9. path: /etc/systemd/journald.conf
  10. regexp: "^#Storage="
  11. line: Storage=persistent
  12. # https://www.linode.com/docs/quick-answers/linux/how-to-use-journalctl/
  13. - name: Setup journald storage keep-free
  14. become: true
  15. lineinfile:
  16. path: /etc/systemd/journald.conf
  17. state: present
  18. regexp: "^#SystemKeepFree="
  19. line: SystemKeepFree=6%