File tree 3 files changed +24
-10
lines changed
packages_installation/tasks
3 files changed +24
-10
lines changed Original file line number Diff line number Diff line change 44
44
<on _reboot >restart</on _reboot >
45
45
<on _crash >restart</on _crash >
46
46
<devices >
47
+ <tpm model =" tpm-tis" >
48
+ <backend type =" emulator" version =" 2.0" />
49
+ </tpm >
47
50
<disk type =" file" device =" cdrom" >
48
51
<target dev =' {{ libvirt_cdromdev }}' bus =' {{ libvirt_cdrombus }}' />
49
52
<readonly />
Original file line number Diff line number Diff line change 33
33
become : yes
34
34
when : CONTAINER_RUNTIME == "podman"
35
35
36
+ - name : Install swtpm
37
+ dnf :
38
+ name : swtpm
39
+ state : present
40
+ become : yes
Original file line number Diff line number Diff line change 7
7
state : latest
8
8
9
9
# TODO: (Sunnatillo) Remove this task after fully removing apt-key
10
- - name : Remove OS old repository (without gpg key file location)
10
+ - name : Remove OS old repository (without gpg key file location)
11
11
apt_repository :
12
12
repo : " deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_{{ OS_VERSION_ID }}/ /"
13
13
state : absent
14
-
14
+
15
15
- name : Remove Ubuntu Noble old repository (without gpg key file location)
16
16
apt_repository :
17
17
repo : " deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_{{ OS_VERSION_ID }}/ /"
35
35
when : ansible_distribution_release == "noble"
36
36
37
37
- name : Dearmor Release key
38
- shell : |
38
+ shell : |
39
39
cat /usr/share/keyrings/libcontainers-archive-keyring.asc | sudo gpg --dearmor -o /usr/share/keyrings/libcontainers-archive-keyring.gpg --yes
40
-
40
+
41
41
- name : Add OS repository
42
42
lineinfile :
43
43
path : /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
66
66
- name : Podman
67
67
block :
68
68
- name : Install podman
69
- apt :
69
+ apt :
70
70
name : podman
71
71
state : present
72
72
92
92
dest : /etc/apt/keyrings/docker.asc
93
93
mode : ' 0644'
94
94
force : true
95
-
95
+
96
96
- name : Dearmor GPG key
97
- shell : |
97
+ shell : |
98
98
cat /etc/apt/keyrings/docker.asc | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg --yes
99
-
99
+
100
100
# TODO: (Sunnatillo) Remove this task after fully removing apt-key
101
- - name : Remove Docker old repository (without gpg key file location)
101
+ - name : Remove Docker old repository (without gpg key file location)
102
102
apt_repository :
103
103
repo : " deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable"
104
104
state : absent
105
105
106
106
# TODO: (Sunnatillo) Remove this task after fully removing apt-key
107
- - name : Remove Docker old repository (without gpg key file location)
107
+ - name : Remove Docker old repository (without gpg key file location)
108
108
apt_repository :
109
109
repo : " deb https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable"
110
110
state : absent
150
150
append : yes
151
151
when : CONTAINER_RUNTIME == "docker"
152
152
become : yes
153
+
154
+ - name : Install swtpm
155
+ apt :
156
+ name : swtpm
157
+ state : present
158
+
153
159
become : yes
You can’t perform that action at this time.
0 commit comments