v3_6.yml 1011 B

12345678910111213141516171819202122232425262728293031323334
  1. ---
  2. - name: Add cloud rpm repository
  3. get_url:
  4. url: https://iso.yunion.cn/yumrepo-3.6/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
  12. yum:
  13. state: latest
  14. name:
  15. - kernel-3.10.0-1062.4.3.el7.yn20191203
  16. - kernel-devel-3.10.0-1062.4.3.el7.yn20191203
  17. - kernel-headers-3.10.0-1062.4.3.el7.yn20191203
  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.6 ./" > /etc/apt/sources.list.d/yunion.list;
  25. curl -k https://iso.yunion.cn/uos/buster/{{ debian_based_arch }}/3.6/yunion.gpg-key.asc -o 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