summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-08-07 12:23:56 +0300
committerLars Wirzenius <liw@liw.fi>2022-08-07 12:23:56 +0300
commita3eb0460a7b2659842b8800884d149ceb08328d3 (patch)
tree98fb1227325f695d28096244142433dda3c289b9
parentaf4cdac5b90197f37079421460297a3a01328e73 (diff)
downloadv-i-a3eb0460a7b2659842b8800884d149ceb08328d3.tar.gz
feat: store the revision of the v-i repo in /etc/v-i-version
This will help users find out what version of the image they have. Sponsored-by: author
-rw-r--r--installer-ansible.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/installer-ansible.yml b/installer-ansible.yml
index 5e56d32..22a9a73 100644
--- a/installer-ansible.yml
+++ b/installer-ansible.yml
@@ -112,6 +112,12 @@
apt:
name: vmdb2
+ - name: "install file with version info"
+ copy:
+ content: |
+ {{ lookup('pipe', 'git describe --dirty') }}
+ dest: /etc/v-i-version
+
vars:
hostname: v-i
ansible_python_interpreter: /usr/bin/python3