| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- ---
- - name: Add cloud rpm repository
- get_url:
- url: https://iso.yunion.cn/yumrepo-3.8/yunion.repo
- dest: /etc/yum.repos.d/yunion.repo
- validate_certs: no
- become: yes
- when:
- - is_centos_x86 is defined
- - name: make cache
- shell: |
- yum clean all
- yum -y --disablerepo='*' --enablerepo='yunion*' makecache
- when:
- - is_centos_x86 is defined
- - name: Install cloud common packages
- yum:
- state: latest
- enablerepo: "{{ (online_status != 'online') | ternary('yunion-*', omit) }}"
- disablerepo: "{{ (online_status != 'online') | ternary('*', omit) }}"
- name:
- - kernel-3.10.0-1160.6.1.el7.yn20201125
- - kernel-devel-3.10.0-1160.6.1.el7.yn20201125
- - kernel-headers-3.10.0-1160.6.1.el7.yn20201125
- - yunion-executor
- when:
- - is_centos_x86 is defined
- - name: init apt cache for debian
- get_url:
- url: https://iso.yunion.cn/uos/buster/{{ debian_based_arch }}/3.8/yunion.gpg-key.asc
- dest: /tmp/yunion.gpg-key.asc
- validate_certs: no
- become: yes
- when:
- - is_debian_based is defined
- - name: apply debian sig key
- shell: |
- echo "deb [trusted=yes] https://iso.yunion.cn/uos/buster/{{ debian_based_arch }}/3.8 ./" > /etc/apt/sources.list.d/yunion.list;
- apt-key add /tmp/yunion.gpg-key.asc;
- apt-get update -y;
- rm -f /tmp/yunion.gpg-key.asc
- args:
- executable: /bin/bash
- when:
- - is_debian_based is defined
- - name: install libselinux-python for arm64 centos
- yum:
- name: libselinux-python
- when:
- - is_centos_aarch64 is defined
- - name: Add cloud rpm repository for arm64 centos
- get_url:
- url: https://iso.yunion.cn/centos-7-aarch/yunion.repo
- dest: /etc/yum.repos.d/yunion.repo
- validate_certs: no
- become: yes
- when:
- - is_centos_aarch64 is defined
- - non_iso_mode is defined
- - name: Install cloud common packages for arm64
- yum:
- state: latest
- name:
- - kernel-4.14.0-115.8.2.el7a.yn20210924
- - yunion-executor
- when:
- - is_centos_aarch64 is defined
- - non_iso_mode is defined
|