v3_9_online.yml 842 B

1234567891011121314151617181920212223242526272829303132
  1. ---
  2. - name: Add cloud rpm repository
  3. get_url:
  4. url: https://iso.yunion.cn/centos/7/3.9/{{ansible_architecture}}/yunion.repo
  5. dest: /etc/yum.repos.d/yunion.repo
  6. validate_certs: no
  7. become: yes
  8. when:
  9. - is_centos_based is defined
  10. - name: Add cloud rpm repository for Kylin
  11. get_url:
  12. url: https://iso.yunion.cn/kylin/v10-{{ansible_distribution_release|lower}}/3.9/{{ansible_architecture}}/kylin-yunion.repo
  13. dest: /etc/yum.repos.d/kylin-yunion.repo
  14. validate_certs: no
  15. become: yes
  16. when:
  17. - is_kylin_based|default(false)|bool == true
  18. - name: make cache
  19. shell: |
  20. yum clean all
  21. yum -y --disablerepo='*' --enablerepo='yunion*' makecache
  22. when:
  23. - is_centos_based is defined
  24. - name: install libselinux-python for arm64 centos
  25. yum:
  26. name: libselinux-python
  27. when:
  28. - is_centos_aarch64 is defined