Backup of variable with ansible

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