Provide 'sources.list' from the host and upgrade initial container.

This commit is contained in:
Andreas B. Mundt 2021-11-11 23:19:39 +01:00 committed by Andreas B. Mundt
parent 7bbfd817f8
commit cb5ade4c84

View file

@ -57,6 +57,20 @@
environment: environment:
http_proxy: http://localhost:3142 http_proxy: http://localhost:3142
- name: provide complete apt sources
copy:
src: /etc/apt/sources.list
dest: /var/lib/machines/{{ contname }}00/etc/apt/sources.list
remote_src: yes
- name: upgrade container
command:
cmd: >
chroot . sh -c '/usr/bin/apt-get update &&
/usr/bin/apt-get full-upgrade --yes'
args:
chdir: /var/lib/machines/{{ contname }}00
- name: provide ansible user account - name: provide ansible user account
command: command:
cmd: > cmd: >