v3_7.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. ---
  2. - name: Add cloud rpm repository
  3. get_url:
  4. url: https://iso.yunion.cn/yumrepo-3.7/yunion.repo
  5. dest: /etc/yum.repos.d/yunion.repo
  6. validate_certs: no
  7. become: yes
  8. when:
  9. - is_centos_x86 is defined
  10. - non_iso_mode is defined
  11. - name: Install cloud common packages for centos x86
  12. yum:
  13. state: latest
  14. name:
  15. - kernel-3.10.0-1160.6.1.el7.yn20201125
  16. - kernel-devel-3.10.0-1160.6.1.el7.yn20201125
  17. - kernel-headers-3.10.0-1160.6.1.el7.yn20201125
  18. - yunion-executor
  19. when:
  20. - is_centos_x86 is defined
  21. - non_iso_mode is defined
  22. - name: init apt cache for uos
  23. shell: |
  24. echo "deb [trusted=yes] https://iso.yunion.cn/uos/buster/{{ debian_based_arch }}/3.7 ./" > /etc/apt/sources.list.d/yunion.list;
  25. curl -k https://iso.yunion.cn/uos/buster/{{ debian_based_arch }}/3.7/yunion.gpg-key.asc -o /tmp/yunion.gpg-key.asc;
  26. apt-key add yunion.gpg-key.asc;
  27. apt-get update -y;
  28. rm -f yunion.gpg-key.asc;
  29. args:
  30. executable: /bin/bash
  31. when:
  32. - is_debian_based is defined
  33. - name: Add cloud rpm repository for arm64 centos
  34. get_url:
  35. url: https://iso.yunion.cn/centos-7-aarch/yunion.repo
  36. dest: /etc/yum.repos.d/yunion.repo
  37. validate_certs: no
  38. become: yes
  39. when:
  40. - is_centos_aarch64 is defined
  41. - non_iso_mode is defined
  42. - name: Install cloud common packages for arm64
  43. yum:
  44. state: latest
  45. name:
  46. - kernel-4.14.0-115.8.2.el7a.yn20210924
  47. - kernel-devel-4.14.0-115.8.2.el7a.yn20210924
  48. - kernel-headers-4.14.0-115.8.2.el7a.yn20210924
  49. - yunion-executor
  50. when:
  51. - is_centos_aarch64 is defined
  52. - non_iso_mode is defined