Hello team,
I would like to use variables in a vars file, like this :
##############
---
# file vars/users.yml
timestamp:
sep2023: 1693864800 # date --date=09/05/2023 +%s
users:
a_user:
name: a_user
passwd: $6$FF.DN/vbue.2i9/vla6h8xpZhx4L/dppBbnnCWN8hZ0
uid: 3007
comment: log receiver
expires: '{{timestamp.sep2023}}'
##############
but when load the file with ansible.builtin.include_vars
I get the error : timestamp' is undefined
How can i do that ?
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/d8b1759f-8f14-419b-baf9-d33809283298n%40googlegroups.com.