| 1234567891011121314151617181920212223242526272829303132 |
- ---
- - name: Add cloud rpm repository
- get_url:
- url: https://iso.yunion.cn/centos/7/3.9/{{ansible_architecture}}/yunion.repo
- dest: /etc/yum.repos.d/yunion.repo
- validate_certs: no
- become: yes
- when:
- - is_centos_based is defined
- - name: Add cloud rpm repository for Kylin
- get_url:
- url: https://iso.yunion.cn/kylin/v10-{{ansible_distribution_release|lower}}/3.9/{{ansible_architecture}}/kylin-yunion.repo
- dest: /etc/yum.repos.d/kylin-yunion.repo
- validate_certs: no
- become: yes
- when:
- - is_kylin_based|default(false)|bool == true
- - name: make cache
- shell: |
- yum clean all
- yum -y --disablerepo='*' --enablerepo='yunion*' makecache
- when:
- - is_centos_based is defined
- - name: install libselinux-python for arm64 centos
- yum:
- name: libselinux-python
- when:
- - is_centos_aarch64 is defined
|