repo.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. ---
  2. # tasks file for repo-universe-factory
  3. - name: Check architecture
  4. when: ansible_architecture != 'i386' and ansible_architecture != 'amd64' and ansible_architecture !='x86_64'
  5. set_fact:
  6. repo_universe_factory_unsupported_architecture: true
  7. - name: Check Distro
  8. when: ansible_distribution != "Debian" and ansible_distribution != "Ubuntu"
  9. set_fact:
  10. repo_universe_factory_unsupported_distro: true
  11. - set_fact:
  12. repo_universe_factory_available: true
  13. when: not repo_universe_factory_unsupported_distro and not repo_universe_factory_unsupported_architecture
  14. - set_fact:
  15. repo_universe_factory_available: false
  16. when: repo_universe_factory_unsupported_distro or repo_universe_factory_unsupported_architecture
  17. - name: Add GPG key for Wheezy backports
  18. when: ansible_distribution_release == 'wheezy' and repo_universe_factory_available
  19. apt_key: keyserver=pgpkeys.mit.edu id=8B48AD6246925553
  20. - name: Add Wheezy backports
  21. when: ansible_distribution_release == 'wheezy' and repo_universe_factory_available
  22. apt_repository: repo='deb http://http.debian.net/debian wheezy-backports main' state=present update_cache=yes
  23. - name: Add Universe Factory GPG Key
  24. when: repo_universe_factory_available
  25. apt_key: keyserver=pgpkeys.mit.edu id=16EF3F64CB201D9C
  26. - name: Add Universe Factory Apt Repository
  27. when: repo_universe_factory_available
  28. apt_repository: repo='deb http://repo.universe-factory.net/debian/ sid main' state=present update_cache=yes