Provide 'sources.list' from the host and upgrade initial container.
This commit is contained in:
parent
7bbfd817f8
commit
cb5ade4c84
1 changed files with 14 additions and 0 deletions
|
@ -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: >
|
||||||
|
|
Loading…
Add table
Reference in a new issue