2023-04-14 18:17:36 +00:00
|
|
|
- name: check whether the TPM is available
|
|
|
|
ansible.builtin.stat:
|
|
|
|
path: /dev/tpm0
|
|
|
|
register: tpm_available
|
|
|
|
|
|
|
|
- name: install TPM tooling
|
|
|
|
when: tpm_available
|
|
|
|
become: true
|
2023-04-14 18:22:45 +00:00
|
|
|
ansible.builtin.apt: name={{ item }} state=present
|
2023-04-14 18:17:36 +00:00
|
|
|
with_items:
|
|
|
|
- clevis-tpm2
|
|
|
|
- tpm2-initramfs-tool
|
|
|
|
- tpm2-openssl
|
|
|
|
- tpm2-tools
|
|
|
|
- tss2
|