add TPM tooling for tpm-enabled machines
This commit is contained in:
parent
c61911ea2d
commit
c08b45704c
|
@ -120,6 +120,7 @@
|
||||||
- syslinux
|
- syslinux
|
||||||
- syslinux-efi
|
- syslinux-efi
|
||||||
- syslinux-utils
|
- syslinux-utils
|
||||||
|
- vboot-utils
|
||||||
- whois
|
- whois
|
||||||
|
|
||||||
- name: install container and virtualisation management
|
- name: install container and virtualisation management
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue