Proxy value is not empty but the apt cache. Try it in an extra task.

This commit is contained in:
Andreas B. Mundt 2023-08-14 21:28:16 +02:00
parent fdda28f16f
commit d125b07b5d

View file

@ -1,16 +1,4 @@
--- ---
- name: preseed packages
ansible.builtin.debconf:
name: ttf-mscorefonts-installer
question: "{{ item.q }}"
value: "{{ item.v }}"
vtype: string
loop:
- q: msttcorefonts/dlurl
v: http://livebox.pn.steinbeis.schule/mscorefonts/
- q: msttcorefonts/http_proxy
v:
- name: Install desktop EDU packages and some more - name: Install desktop EDU packages and some more
apt: apt:
name: name:
@ -48,7 +36,6 @@
- dia - dia
- vym - vym
- tree - tree
- ttf-mscorefonts-installer
- sqlite3 - sqlite3
- sqlitebrowser - sqlitebrowser
- neovim - neovim
@ -64,6 +51,7 @@
- sigrok - sigrok
- sigrok-cli - sigrok-cli
- codeblocks - codeblocks
autoremove: true
state: latest state: latest
- name: Add {{ ansible_distribution_release }}-backports - name: Add {{ ansible_distribution_release }}-backports
@ -84,6 +72,23 @@
when: ansible_distribution_release == 'bullseye' when: ansible_distribution_release == 'bullseye'
- name: Preseed ttf-mscorefonts-installer
ansible.builtin.debconf:
name: ttf-mscorefonts-installer
question: msttcorefonts/dlurl
value: http://livebox.pn.steinbeis.schule/mscorefonts/
vtype: string
- name: Install fonts from local mirror
apt:
name:
- ttf-mscorefonts-installer
state: latest
autoremove: true
environment:
http_proxy: ''
- name: Enable splash screen - name: Enable splash screen
replace: replace:
dest: "/etc/default/grub" dest: "/etc/default/grub"