Remove container setup tasks from VM setup playbook
Looking at builds that will involve different, or multiple, containers. Probably makes more sense to set up and tear down containers after VM is built.
This commit is contained in:
parent
c733109520
commit
6f90fb2e26
|
@ -175,20 +175,6 @@
|
|||
mode: "0755"
|
||||
tags: script
|
||||
|
||||
- name: Check for presence of Gitian LXC image.
|
||||
stat:
|
||||
path: "/home/{{ gitian_user }}/gitian-builder/base-jessie-amd64"
|
||||
register: gitian_lxc_image
|
||||
|
||||
- name: Set up the Gitian LXC image.
|
||||
shell: "source ~/.profile && /home/{{ gitian_user }}/gitian-builder/bin/make-base-vm --lxc --arch amd64 --distro debian --suite jessie"
|
||||
when: gitian_lxc_image.stat.exists == false
|
||||
become: yes
|
||||
become_user: "{{ gitian_user }}"
|
||||
args:
|
||||
chdir: "/home/{{ gitian_user }}/gitian-builder"
|
||||
executable: /bin/bash
|
||||
|
||||
- name: Clean the apt cache to free up space.
|
||||
apt:
|
||||
autoclean: yes
|
||||
|
|
Loading…
Reference in New Issue