From a3eb0460a7b2659842b8800884d149ceb08328d3 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 7 Aug 2022 12:23:56 +0300 Subject: 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 --- installer-ansible.yml | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.1