Split a variable?

20 views
Skip to first unread message

ouafnico

unread,
Apr 12, 2017, 5:27:44 PM4/12/17
to Ansible Project
Hi all,

I'm searching how to split a variable with ansible.
For example on my playbook I got the variable {{install['myhostname']}}.
Actually this viarable is hostname.domain.

How can I split it to 2 variables, hostname and domain ?

Thanks !

Phonthip Namkaew

unread,
Apr 13, 2017, 1:36:56 AM4/13/17
to Ansible Project
Reply all
Reply to author
Forward
0 new messages