Skip to content

Commit 25cbe43

Browse files
committed
FEAT-036: Add task to obtain build information and put it somewhere the virtual machine can read it.
1 parent 43f64d1 commit 25cbe43

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

roles/create_VM/tasks/main.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,17 @@
6666
regexp="^[0-9a-zA-Z]*"
6767
line={{ current_version.stdout }}
6868

69+
- name: Obtain build machine information.
70+
shell: |
71+
echo "Build VirtualBox version: $(VBoxManage --version)" > {{ vm_dir }}/build_information
72+
echo "Build Vagrant version: $(vagrant --version)" >> {{ vm_dir }}/build_information
73+
echo "Build hostname: $HOSTNAME" >> {{ vm_dir }}/build_information
74+
echo "Uname output: $(uname -a)" >> {{ vm_dir }}/build_information
75+
echo "lsb_release output: $(lsb_release -a) >> {{ vm_dir }}/build_information
76+
args:
77+
chdir: "{{ vm_dir }}"
78+
executable: /bin/bash
79+
6980
- name: Start the virtual machine. Vagrant may attempt to install VirtualBox Guest Additions here.
7081
shell: vagrant up --no-provision > {{ vm_name }}.log
7182
chdir={{ vm_dir }}

0 commit comments

Comments
 (0)