Skip to content

Commit

Permalink
Move image to shared folder after provisioning
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkaholic committed Jan 13, 2020
1 parent 1b10dbe commit 20ff2f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.vagrant/
*.retry
*.tar.gz
6 changes: 6 additions & 0 deletions playbooks/roles/debian9-hetzner/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,9 @@
shell: tar zcvf Debian-911-stretch-64-custom-{{ package_timestamp }}.tar.gz /bin /boot /etc /home /lib /lib64 /media /mnt /opt /root /run /sbin /srv /tmp /usr /var
args:
chdir: /osimage

- name: Move image file to /vagrant directory
copy:
src: /osimage/Debian-911-stretch-64-custom-{{ package_timestamp }}.tar.gz
dest: /vagrant/Debian-911-stretch-64-custom-{{ package_timestamp }}.tar.gz
remote_src: True

0 comments on commit 20ff2f7

Please sign in to comment.