add TPM tooling for tpm-enabled machines

This commit is contained in:
Kyle Isom 2023-04-14 11:17:36 -07:00
parent c61911ea2d
commit c08b45704c
2 changed files with 16 additions and 0 deletions

View File

@ -120,6 +120,7 @@
- syslinux
- syslinux-efi
- syslinux-utils
- vboot-utils
- whois
- name: install container and virtualisation management

15
roles/tpm/tasks/main.yml Normal file
View File

@ -0,0 +1,15 @@
- 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
ansible.builtin.apt: name={{ item }} state=exists
with_items:
- clevis-tpm2
- tpm2-initramfs-tool
- tpm2-openssl
- tpm2-tools
- tss2