Hello,
I would like to set in my playbook a variable depending on the ansible_user value.
If I set it twice, an error occurs, how can I write it:
vars:
rep_user: {{ ansible_user }}
rep_user: /home/{{ ansible_user }}
when: ansible_user == fval
Si I would test my playbook with the fval ansible_user to deploy in my home directory, and when I will tun it for good, it will deploy on another directory.
Thank you