debian.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. - name: Check Debian version
  2. when: ansible_lsb.major_release|int <= 6
  3. set_fact:
  4. libsodium_build_from_source: true
  5. - name: Add GPG key for Wheezy backports
  6. when: ansible_distribution_release == 'wheezy' and not libsodium_build_from_source
  7. apt_key: keyserver=pgpkeys.mit.edu id=8B48AD6246925553
  8. - name: Add Wheezy backports
  9. when: ansible_distribution_release == 'wheezy' and not libsodium_build_from_source
  10. apt_repository: repo='deb http://http.debian.net/debian wheezy-backports main' state=present update_cache=yes
  11. - name: Add GPG key for fastd Apt repo
  12. when: ansible_distribution_release == 'wheezy' and not libsodium_build_from_source
  13. apt_key: keyserver=pgpkeys.mit.edu id=16EF3F64CB201D9C
  14. - name: Add fastd Apt repo
  15. when: ansible_distribution_release == 'wheezy' and not libsodium_build_from_source
  16. apt_repository: repo='deb http://repo.universe-factory.net/debian/ sid main' state=present update_cache=yes
  17. - name: Install libsodium via Apt
  18. when: not libsodium_build_from_source
  19. apt: name={{item}} state=latest update_cache=yes
  20. with_items:
  21. - libsodium13
  22. - libsodium-dev
  23. - name: Install build dependencies for libsodium
  24. when: libsodium_build_from_source
  25. apt: name={{item}} state=present
  26. with_items:
  27. - build-essential
  28. - autoconf
  29. - include: source.yml
  30. when: libsodium_build_from_source