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

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7cf4dbd1-f3cd-4fa2-8fd7-296f5ecb94cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to