Allow sgx and virtual builds to be installed side-by-side using Ansible. (#4693)

This commit is contained in:
Paul Liétar 2022-12-06 23:25:16 +00:00 коммит произвёл GitHub
Родитель e638c5edca
Коммит 817c2c3e0a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 15 добавлений и 2 удалений

Просмотреть файл

@ -14,14 +14,21 @@
- import_role:
name: az_dcap
tasks_from: install.yml
# If OE is already installed, we don't want to install hostverify as they are mutually
# exclusive. Non-SGX CCF builds can use either of them.
- name: Gather the package facts
ansible.builtin.package_facts:
manager: auto
- import_role:
name: openenclave
tasks_from: binary_install.yml
when: platform == "sgx"
when: (platform == "sgx") or ("open-enclave" in ansible_facts.packages)
- import_role:
name: openenclave
tasks_from: install_host_verify.yml
when: platform != "sgx"
when: (platform != "sgx") and ("open-enclave" not in ansible_facts.packages)
- import_role:
name: ccf_build
tasks_from: install.yml

Просмотреть файл

@ -1,6 +1,12 @@
- name: Include vars
include_vars: common.yml
- name: Uninstall Open Enclave Host Verify
apt:
name: open-enclave-hostverify
state: absent
become: yes
- name: Install Open Enclave
apt:
deb: "{{ oe_deb }}"