diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-08-07 12:23:56 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-08-07 12:23:56 +0300 |
commit | a3eb0460a7b2659842b8800884d149ceb08328d3 (patch) | |
tree | 98fb1227325f695d28096244142433dda3c289b9 /installer-ansible.yml | |
parent | af4cdac5b90197f37079421460297a3a01328e73 (diff) | |
download | v-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
Diffstat (limited to 'installer-ansible.yml')
-rw-r--r-- | installer-ansible.yml | 6 |
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 |