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.

31 lines
852 B

  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: "path=/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: Restart journald
  11. service: name=systemd-journald state=restarted
  12. #TODO include is deprecated in Ansible 2.4.0 and will be removed in 2.8.0
  13. #Replace it with include_tasks
  14. - include: debian.yml
  15. when: ansible_os_family == "Debian"
  16. - include: centos.yml
  17. when: ansible_os_family == "RedHat"
  18. - name: copy compiled binary
  19. when: not release_install|bool
  20. copy:
  21. src: "{{binary}}"
  22. dest: /usr/local/bin
  23. mode: 0755