debian.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. - name: Add GPG key for Wheezy backports
  2. when: ansible_distribution_release == 'wheezy' and not fastd_install_from_source
  3. apt_key: keyserver=pgpkeys.mit.edu id=8B48AD6246925553
  4. - name: Add Wheezy backports
  5. when: ansible_distribution_release == 'wheezy' and not fastd_install_from_source
  6. apt_repository: repo='deb http://http.debian.net/debian wheezy-backports main' state=present update_cache=yes
  7. - name: Add GPG key for fastd Apt repo
  8. when: not fastd_install_from_source
  9. apt_key: keyserver=pgpkeys.mit.edu id=16EF3F64CB201D9C
  10. - name: Add fastd Apt repo
  11. when: not fastd_install_from_source
  12. apt_repository: repo='deb http://repo.universe-factory.net/debian/ sid main' state=present update_cache=yes
  13. - name: Install fastd build dependencies
  14. when: fastd_install_from_source
  15. apt: name={{item}} update_cache=yes
  16. with_items:
  17. - libcap2
  18. - libcap-dev
  19. - bison
  20. - pkg-config
  21. - cmake
  22. - libssl1.0.0
  23. - libssl-dev
  24. - git
  25. - build-essential
  26. - name: Install fastd via Apt
  27. when: not fastd_install_from_source
  28. apt: name=fastd state=latest