debian.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. - name: Install fastd build dependencies
  2. when: not repo_universe_factory_available
  3. apt: name={{item}} update_cache=yes
  4. with_items:
  5. - libcap2
  6. - libcap-dev
  7. - bison
  8. - pkg-config
  9. - cmake
  10. - libssl1.0.0
  11. - libssl-dev
  12. - git
  13. - build-essential
  14. - name: Install rng-tools
  15. when: fastd_use_rng
  16. apt: name=rng-tools state=present
  17. - name: Make sure that rng-tools uses /dev/urandom
  18. when: fastd_use_rng
  19. lineinfile:
  20. dest: /etc/default/rng-tools
  21. line: HRNGDEVICE=/dev/urandom
  22. - include: source.yml
  23. when: not repo_universe_factory_available
  24. - name: Download backported libjson-c2
  25. when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int < 14
  26. get_url:
  27. url="{{ fastd_libjson_url }}"
  28. dest="/tmp/libjson-c2.deb"
  29. - name: Install backported libjson-c2
  30. when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int < 14
  31. apt: deb="/tmp/libjson-c2.deb"
  32. - name: Install fastd via Apt
  33. when: repo_universe_factory_available
  34. apt: name=fastd state=latest
  35. - name: Add fastd user
  36. user: createhome=no system=yes shell={{fastd_user_shell}} name={{fastd_user_name}}