# Backup of variable with ansible

**URL:** <https://forum.ansible.com/t/backup-of-variable-with-ansible/31537>\
**Category:** Ansible Project\
**Created:** [October 24, 2019, 10:09am UTC](https://forum.ansible.com/t/backup-of-variable-with-ansible/31537 "2019-10-24T10:09:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karther](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@Karther](https://forum.ansible.com/u/Karther)\
**Post date:** [October 24, 2019, 10:09am UTC](https://forum.ansible.com/t/backup-of-variable-with-ansible/31537/1 "2019-10-24T10:09:09Z")

</div>

Hey,

I have file var with this content :

version: 3-40-00

I have this task who create repertory :

- name: “Create repertory if run\_db\_test.sh is execut”  
file:  
path: /home/ansible/hospitalis\_sql/gis-db-patch-{{ hold\_version}}-{{ version }}  
state: directory  
delegate\_to: localhost

When i change value of my variable “version: 3-40-00” with this content “version: 3-40-01” in the file var.

I want that :

hold\_version = 3-40-00

version = 3-40-01
