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.

40 lines
1.1 KiB

  1. ---
  2. - name: Set timezone
  3. when: timezone is defined
  4. file: path=/etc/localtime state=link src=/usr/share/zoneinfo/{{timezone}} force=yes
  5. - name: Disable journald rate-limiting
  6. lineinfile: "dest=/etc/systemd/journald.conf regexp={{item.regexp}} line='{{item.line}}'"
  7. with_items:
  8. - { regexp: "^#RateLimitInterval", line: "RateLimitInterval=0s" }
  9. - { regexp: "^#RateLimitBurst", line: "RateLimitBurst=0" }
  10. - name: Create journal directory for permanent logs
  11. file: path=/var/log/journal state=directory
  12. - name: Set journal folder with systemd-tmpfiles
  13. command: "systemd-tmpfiles --create --prefix /var/log/journal"
  14. - name: Restart journald
  15. service: name=systemd-journald state=restarted
  16. - name: Ability to get the core dump on SIGABRT
  17. shell: "ulimit -c unlimited"
  18. #TODO include is deprecated in Ansible 2.4.0 and will be removed in 2.8.0
  19. #Replace it with include_tasks
  20. - include: debian.yml
  21. when: ansible_os_family == "Debian"
  22. - include: centos.yml
  23. when: ansible_os_family == "RedHat"
  24. - name: copy compiled binary
  25. when: not release_install|bool
  26. copy:
  27. src: "{{binary}}"
  28. dest: /usr/local/bin
  29. mode: 0755